Document Relation
Partial update document relation
Changed onUpdate part of a document relation object.
patch/api/v1/document_relations/{documentRelationID}
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/rossum/apis/rossum-api/docs/api/v1/document_relations/:documentRelationID/patch.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
documentRelationIDinteger required
Document relation ID
Request body
Example request
{
"id": 1,
"type": "export",
"annotation": "https://example.rossum.app/api/v1/annotations/314159",
"documents": [
"https://example.rossum.app/api/v1/documents/124",
"https://example.rossum.app/api/v1/documents/125"
],
"url": "https://example.rossum.app/api/v1/document_relations/1"
}Response
OK
Example response
{
"id": 1,
"type": "export",
"annotation": "https://example.rossum.app/api/v1/annotations/314159",
"documents": [
"https://example.rossum.app/api/v1/documents/124",
"https://example.rossum.app/api/v1/documents/125"
],
"url": "https://example.rossum.app/api/v1/document_relations/1"
}Changes
- breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added
subschema #2to the response bodyallOflist for the response status
- breaking