Relation
Create relation
Changed onCreate a new relation object.
post/api/v1/relations
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Created
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