Skip to content

ndi.cloud.documents.post_documents

  POST_DOCUMENTS - add a document to the dataset

  [STATUS,RESPONSE] = ndi.cloud.documents.post_documents(DATASET_ID, DOCUMENT, AUTH_TOKEN)

  Inputs:
    DATASET_ID - a string representing the dataset id
    DOCUMENT - a string of JSON object representing the new document
    AUTH_TOKEN - a string representing the authentification token

  Outputs:
    STATUS - did post request work? 1 for no, 0 for yes
    RESPONSE - the new document summary