Relation
Update relation
Changed onUpdate relation object.
put/api/v1/relations/{relationID}
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
relationIDinteger required
A unique integer value identifying this relation.
Request body
Example request
{
"id": 1,
"type": "edit",
"parent": "https://example.rossum.app/api/v1/annotations/123",
"annotations": [
"https://example.rossum.app/api/v1/annotations/124",
"https://example.rossum.app/api/v1/annotations/125"
],
"url": "https://example.rossum.app/api/v1/relations/1"
}Response
OK
Example response
{
"id": 1,
"type": "edit",
"parent": "https://example.rossum.app/api/v1/annotations/123",
"annotations": [
"https://example.rossum.app/api/v1/annotations/124",
"https://example.rossum.app/api/v1/annotations/125"
],
"url": "https://example.rossum.app/api/v1/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