Skip to content

ndi.cloud.documents.post_documents_update

  POST_DOCUMENTS_UPDATE - update a document

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

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

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