curl --request PATCH \
--url http:localhost:3000/v2/documents/{id} \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--data '{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"url": "<string>",
"name": "<string>",
"fileName": "<string>",
"objectId": "<string>",
"userId": "<string>",
"jobId": "<string>",
"customerId": "<string>",
"absenceId": "<string>",
"complaintId": "<string>",
"uploadId": "<string>",
"accessGroup": "<string>"
}'
Update a document’s metadata or properties.
curl --request PATCH \
--url http:localhost:3000/v2/documents/{id} \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--data '{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"url": "<string>",
"name": "<string>",
"fileName": "<string>",
"objectId": "<string>",
"userId": "<string>",
"jobId": "<string>",
"customerId": "<string>",
"absenceId": "<string>",
"complaintId": "<string>",
"uploadId": "<string>",
"accessGroup": "<string>"
}'
Document ID
Document data to update
A document represents a file or attachment stored in the system, with metadata and references to related entities. Base class for all entities in the system, providing common properties and methods.
Document updated successfully
Was this page helpful?