Take back carry-overs
curl --request POST \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/carry-overs/undo \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "carry_over_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "batch_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'By carry_over_ids or a whole batch_id. Moves back exactly what each carry-over moved; work recorded on the live element after it stays there and is counted in stayed. An undone carry-over is a change in listCarryOvers with undone_at. Undoing one again answers it refused with REMAP_STALE. An undo still running 25 seconds after the request arrived answers 400 VALIDATION_ERROR with the reason TIME_LIMIT in details and undoes nothing: undo fewer carry-overs at a time, by carry_over_ids.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The model’s id
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "carry_over_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "batch_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Undone and refused carry-overs
object
One carry-over of an undo’s answer.
object
An undo’s status.
What an undo moved back.
object
Work recorded on the new element after the carry-over; it stays there
Why a pair was refused.
What an undo moved back.
object
Example
{ "carry_overs": [ { "status": "undone", "code": "LABEL_ON_BOTH" } ]}Invalid body, parameters or Idempotency-Key
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE when the project role the scopes give does not cover the write, or the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation has turned the API off
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}No such project, model, model version or reference document
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}MODEL_BUSY
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}IDEMPOTENCY_KEY_REUSED: the key was used with another body
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}