Relation
List relations
Retrieve all relation objects (annotations from queues not with active status are excluded).
get/api/v1/relations
Query parameters
page_sizeinteger
Number of results per page
cursorstring
A value used for cursor-based pagination. Obtain this value from the next or previous URLs in a paginated response. Do not construct cursor values manually.
idinteger[]
Object ID(s) filter
type'edit' | 'attachment' | 'duplicate'
Relation type. Multiple values may be separated using a comma.
parentinteger
ID of parent annotation. Multiple values may be separated using a comma.
keystring
Relation key
annotationinteger[]
Annotation ID(s) filter
ordering'type' | '-type' | 'parent' | '-parent' | 'key' | '-key'
Result ordering.
Response
OK
Example response
{
"results": [
{
"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
No recorded changes to this endpoint across all 1 revision of this API.