Document
Partial update document
Changed onUpdate part of a document object.
patch/api/v1/documents/{documentID}
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
documentIDinteger required
Document ID
Request body
Example request
{
"id": 314628,
"url": "https://example.rossum.app/api/v1/documents/314628",
"s3_name": "272c2f01ae84a4e19a421cb432e490bb",
"parent": "https://example.rossum.app/api/v1/documents/203517",
"email": "https://example.rossum.app/api/v1/emails/1234",
"annotations": [
"https://example.rossum.app/api/v1/annotations/314528"
],
"mime_type": "application/pdf",
"creator": "https://example.rossum.app/api/v1/users/1",
"created_at": "2020-05-21T12:34:56.789Z",
"arrived_at": "2020-05-21T12:34:56.789Z",
"original_file_name": "invoice.pdf",
"content": "https://example.rossum.app/api/v1/documents/314628/content",
"attachment_status": "processed",
"metadata": {
"some_key": "some_value"
}
}Response
OK
Example response
{
"id": 314628,
"url": "https://example.rossum.app/api/v1/documents/314628",
"s3_name": "272c2f01ae84a4e19a421cb432e490bb",
"parent": "https://example.rossum.app/api/v1/documents/203517",
"email": "https://example.rossum.app/api/v1/emails/1234",
"annotations": [
"https://example.rossum.app/api/v1/annotations/314528"
],
"mime_type": "application/pdf",
"creator": "https://example.rossum.app/api/v1/users/1",
"created_at": "2020-05-21T12:34:56.789Z",
"arrived_at": "2020-05-21T12:34:56.789Z",
"original_file_name": "invoice.pdf",
"content": "https://example.rossum.app/api/v1/documents/314628/content",
"attachment_status": "processed",
"metadata": {
"some_key": "some_value"
}
}Changes
- warning
added the new
hook_convertedenum value to theresponse property for the response status - info
added the new
hook_convertedenum value to the request property
- warning