Suggested Edit
Update suggested edit
Changed onUpdate suggested edit object.
put/api/v1/suggested_edits/{suggestedEditID}
Request
- Base URLhttps://example.rossum.app
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
suggestedEditIDinteger required
ID of the suggested edit
Request body
Example request
{
"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"
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}Response
OK
Example response
{
"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"
}
],
"target_queue": "https://example.rossum.app/api/v1/queues/314528",
"values": {
"edit:document_type": "invoice"
}
}
]
}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 - info
added
subschema #2to the response bodyallOflist for the response status
- breaking