Api.updateDocument

updateDocument(containerId, documentId, documentData)

Updates all document data for the specified document.

This method executes asynchronously and returns a promise.

Arguments
  • containerId (guid()) – Unique identifier of the document container that contains the document.

  • documentId (guid()) – Unique document identifier of the document.

  • documentData (object()) – Contains all relevant document properties that will be updated. This object must contain all properties of the document including those that are currently set. You will normally pass an instance of Document() after some of its properties have been changed.

Returns

For error responses, see Error Responses.

If successful, updates the document data.