POST /api-web/api/dms/objects/{id}/contents/file

As of Version

product version 2020 Autumn | component version 

Request MethodPOST
Response FormatJSON
Description

Updates the binary content file assigned to the object specified by its object ID id with the file passed in the request body.

The response body contains the metadata of the corresponding object.

Response HTTP status codes:

HTTP Status CodeMeaning
200 OK
304 Not Modified
401 Unauthorized
422 Unprocessable entity
Request Example

https://<host>/api-web/api/dms/objects/234df-aca4-fe423/contents/file

Any content file in the request body

Response Example

200 OK

{
  "objects": [
    {
      "properties": {
        "system:objectId": {
          "value": "4711-44321-666777888"
        },
        "subject": {
          "value": "Sie sind der Doc, Doc."
        }
      }
    }
  ],
  "numItems": 0,
  "hasMoreItems": true,
  "totalNumItems": 0
}