edoc content services Guide
Breadcrumbs

Edit the properties of a document

Method and endpoint

PATCH /Documents/{documentId}

You can use the PATCH /Documents/{documentId} method and endpoint to edit the properties of an existing document in the destination system. You only send the edited properties to the destination system with this method.

If the process was successful, only the HTTP status 204 No Content is returned in response.

Example of a request

JSON
PATCH /Documents/762f8698-f605-4de5-89fb-6f5fff3435fd
Accept: */ *
ModuleId: sharepoint
ConnectionString: targetHost=https://test.sharepoint.com;User=MyUserName;Password=MyPassword;ListId=MyListId;

{
  "id": "762f8698-f605-4de5-89fb-6f5fff3435fd",
  "category": "dc4af18a-dd54-4735-bad5-92517e8653f2",
  "properties": {
    "TenantId": [
      "4321"
    ],
    "Tenant_x0020_Name": [
      "Another Tenant"
    ]
  }
}