PATCH /v1/documents/:id lets you update the metadata of a document you own. All body fields are optional; you only need to include the fields you want to change. Successfully updating a document triggers a document.updated event in your activity feed.
This endpoint updates document metadata only. To attach or modify the associated loan, use the create endpoint with a new document, or contact support for loan record changes.
Request headers
string
required
Bearer token obtained from your Clerk session. Example:
Bearer eyJhbGc...string
required
Must be
application/json.Path parameters
string
required
The unique identifier of the document to update. The document must be owned by your account; the API returns
404 for documents that do not exist or belong to another account.Request body
All fields are optional. The API only modifies the fields you include in the request body.string
New display name for the document. Minimum 1 character, maximum 200 characters.
string or null
New description. Maximum 2000 characters. Pass
null explicitly to clear an existing description.string
New chattel type classification ID. Must be one of the valid chattel type IDs. Returns
400 if the value is not recognized.Response
Returns200 OK with the updated document.
object
required
The full updated document object.
