Suggested Edit
A suggested edit object contains splittings of incoming document suggested by the AI engine.
Suggested edit objects are created automatically during document import.
Suggested edit
ID of the suggested edit.
URL of the suggested edit.
Annotation that suggested edit is related to.
List suggested edits
GET api / v1 / suggested_edits
Retrieve all suggested edit objects.
curl -X GET "https://example.rossum.app/api/v1/suggested_edits"{
"results": [
{
"id": 314528,
"url": "https://example.rossum.app/api/v1/suggested_edits/314528",
"annotation": "https://example.rossum.app/api/v1/annotations/314528",
"documents": [
{
"pages": [
{
"page": "https://example.rossum.app/api/v1/pages/314554",
"rotation": 0,
"deleted": false
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}
],
"pagination": {
"next": null,
"previous": null
}
}{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"detail": "Not found.",
"code": "not_found"
}{
"detail": "Conflict.",
"code": "conflict_status"
}{
"detail": "Request was rate limited.",
"code": "rate_limited",
"url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}{
"detail": "Server error.",
"code": "error"
}{
"detail": "Bad Gateway.",
"code": "bad_gateway"
}{
"detail": "Service Unavailable.",
"code": "service_unavailable"
}{
"detail": "Gateway timeout.",
"code": "gateway_timeout"
}Response
OK
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error
Create suggested edit
POST api / v1 / suggested_edits
Create a new suggested edit object.
curl -X POST "https://example.rossum.app/api/v1/suggested_edits" \ -H "Content-Type: application/json" \ -d '{ "annotation": "https://example.rossum.app/api/v1/annotations/314528", "documents": [ {} ] }'{
"id": 314528,
"url": "https://example.rossum.app/api/v1/suggested_edits/314528",
"annotation": "https://example.rossum.app/api/v1/annotations/314528",
"documents": [
{
"pages": [
{
"page": "https://example.rossum.app/api/v1/pages/314554",
"rotation": 0,
"deleted": false
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"detail": "Not found.",
"code": "not_found"
}{
"detail": "Conflict.",
"code": "conflict_status"
}{
"detail": "Payload Too Large.",
"code": "payload_too_large"
}{
"detail": "Request was rate limited.",
"code": "rate_limited",
"url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}{
"detail": "Server error.",
"code": "error"
}{
"detail": "Bad Gateway.",
"code": "bad_gateway"
}{
"detail": "Service Unavailable.",
"code": "service_unavailable"
}{
"detail": "Gateway timeout.",
"code": "gateway_timeout"
}Request Body
application/json
Annotation that suggested edit is related to.
Response
Created
ID of the suggested edit.
URL of the suggested edit.
Annotation that suggested edit is related to.
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Payload too large (especially for files uploaded).
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error
Retrieve suggested edit
GET api / v1 / suggested_edits / {suggestedEditID}
Get a suggested edit object.
curl -X GET "https://example.rossum.app/api/v1/suggested_edits/0"{
"id": 314528,
"url": "https://example.rossum.app/api/v1/suggested_edits/314528",
"annotation": "https://example.rossum.app/api/v1/annotations/314528",
"documents": [
{
"pages": [
{
"page": "https://example.rossum.app/api/v1/pages/314554",
"rotation": 0,
"deleted": false
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"detail": "Not found.",
"code": "not_found"
}{
"detail": "Conflict.",
"code": "conflict_status"
}{
"detail": "Request was rate limited.",
"code": "rate_limited",
"url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}{
"detail": "Server error.",
"code": "error"
}{
"detail": "Bad Gateway.",
"code": "bad_gateway"
}{
"detail": "Service Unavailable.",
"code": "service_unavailable"
}{
"detail": "Gateway timeout.",
"code": "gateway_timeout"
}Response
OK
ID of the suggested edit.
URL of the suggested edit.
Annotation that suggested edit is related to.
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error
Partial update suggested edit
PATCH api / v1 / suggested_edits / {suggestedEditID}
Update part of suggested edit object.
curl -X PATCH "https://example.rossum.app/api/v1/suggested_edits/0" \ -H "Content-Type: application/json" \ -d '{}'{
"id": 314528,
"url": "https://example.rossum.app/api/v1/suggested_edits/314528",
"annotation": "https://example.rossum.app/api/v1/annotations/314528",
"documents": [
{
"pages": [
{
"page": "https://example.rossum.app/api/v1/pages/314554",
"rotation": 0,
"deleted": false
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"detail": "Not found.",
"code": "not_found"
}{
"detail": "Conflict.",
"code": "conflict_status"
}{
"detail": "Payload Too Large.",
"code": "payload_too_large"
}{
"detail": "Request was rate limited.",
"code": "rate_limited",
"url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}{
"detail": "Server error.",
"code": "error"
}{
"detail": "Bad Gateway.",
"code": "bad_gateway"
}{
"detail": "Service Unavailable.",
"code": "service_unavailable"
}{
"detail": "Gateway timeout.",
"code": "gateway_timeout"
}Request Body
application/json
Annotation that suggested edit is related to.
Response
OK
ID of the suggested edit.
URL of the suggested edit.
Annotation that suggested edit is related to.
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Payload too large (especially for files uploaded).
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error
Delete suggested edit
DELETE api / v1 / suggested_edits / {suggestedEditID}
Delete suggested edit object.
curl -X DELETE "https://example.rossum.app/api/v1/suggested_edits/0"{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"detail": "Not found.",
"code": "not_found"
}{
"detail": "Conflict.",
"code": "conflict_status"
}{
"detail": "Request was rate limited.",
"code": "rate_limited",
"url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}{
"detail": "Server error.",
"code": "error"
}{
"detail": "Bad Gateway.",
"code": "bad_gateway"
}{
"detail": "Service Unavailable.",
"code": "service_unavailable"
}{
"detail": "Gateway timeout.",
"code": "gateway_timeout"
}Response
No Content
No response body.
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error
Update suggested edit
PUT api / v1 / suggested_edits / {suggestedEditID}
Update suggested edit object.
curl -X PUT "https://example.rossum.app/api/v1/suggested_edits/0" \ -H "Content-Type: application/json" \ -d '{ "annotation": "https://example.rossum.app/api/v1/annotations/314528", "documents": [ {} ] }'{
"id": 314528,
"url": "https://example.rossum.app/api/v1/suggested_edits/314528",
"annotation": "https://example.rossum.app/api/v1/annotations/314528",
"documents": [
{
"pages": [
{
"page": "https://example.rossum.app/api/v1/pages/314554",
"rotation": 0,
"deleted": false
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}{
"detail": "Bad Request.",
"code": "bad_request"
}{
"detail": "Invalid token.",
"code": "authentication_failed"
}{
"detail": "Access to the requested resource is forbidden.",
"code": "access_forbidden"
}{
"detail": "Not found.",
"code": "not_found"
}{
"detail": "Conflict.",
"code": "conflict_status"
}{
"detail": "Payload Too Large.",
"code": "payload_too_large"
}{
"detail": "Request was rate limited.",
"code": "rate_limited",
"url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}{
"detail": "Server error.",
"code": "error"
}{
"detail": "Bad Gateway.",
"code": "bad_gateway"
}{
"detail": "Service Unavailable.",
"code": "service_unavailable"
}{
"detail": "Gateway timeout.",
"code": "gateway_timeout"
}Request Body
application/json
Annotation that suggested edit is related to.
Response
OK
ID of the suggested edit.
URL of the suggested edit.
Annotation that suggested edit is related to.
Invalid input data.
Detail of the error
Code of the error
The username/password is invalid or token is invalid (e.g. expired).
Detail of the error
Code of the error
Insufficient permission, missing authentication, invalid CSRF token and similar issue.
Detail of the error
Code of the error
The specified resource was not found.
Detail of the error
Code of the error
Conflict
Detail of the error
Code of the error
Payload too large (especially for files uploaded).
Detail of the error
Code of the error
Request rate is too high, wait before sending more requests. See Rate Limiting for more details.
Detail of the error
Code of the error
Link to the rate limiting documentation
Server failure while processing the request.
Detail of the error
Code of the error
Invalid response from the upstream server.
Detail of the error
Code of the error
We're temporarily offline for maintenance. Please try again later.
Detail of the error
Code of the error
Upstream server could not complete the request in time.
Detail of the error
Code of the error