Update Document Content

 

This method updates (replaces) a document.  If the document exists within the MoversSuite Document Library, then the document content is replaced and the document metadata is updated.  If the document exists outside of the MoversSuite Document Library, then the content is added to the MoversSuite Document Library and the metadata is updated to reflect its new location, i.e. the ContentUrl is cleared from the document metadata.

 

HTTP Verb/Method:

PUT

URL Format:

http://server/api/documents/{OrderID}/{DocName}?upload=true&user={SysUserID}

Returns:

HTTP status of 200 (OK) is returned upon a successful update.  An error is returned when the metadata for the document cannot be found.

 

The following table lists the parameters available for this method request.

 

Parameter

Description

OrderID

Enter the primary key of the requested MoversSuite order.

DocName

Enter the name of the document to be added or updated.

SysUserID

Set this to the SysUserID from the Sysuser table for the correct user.  Users are defined within Personnel Setup.

 

The body of the request must be the raw content of the document.