Update Document
PUT/document/:document_id
The Update Document API allows users to modify and update the details of a specific document. Note that this API only allows to update a few parameters, you cannot change the file once it the document is created.
Request
Path Parameters
document_id stringrequired
ID of the document that needs to be updated
- application/json
Body
Provide below parameter to update templates (at least one parameter required)
name string
note string
description string
folderId string
Responses
- 200
- 400
- 404
- 405
Document updated successfully!
- application/json
- Schema
- Example (from schema)
Schema
objectId string
updatedAt date
{
"objectId": "asd2HsP4Hp",
"updatedAt": "2023-10-07T16:49:56.000Z"
}
Please provide valid field names!
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Please provide valid field names!"
}
Document not found!
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Document not found!"
}
Invalid API Token!
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Invalid API token!"
}
Loading...