Cancel one RSVP-TE measurement
POST
/tasks/{id}/rsvp/measurement/cancelForwards cancellation only to the same registered agent of a RUNNING task. The agent checks the exact task and runtime generation and persists cancellation intent. A saved terminal measurement is returned without mutation. Cancellation is asynchronous; query until terminal.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Positive task ID |
| request | body | yes | object | Named agent and sealed measurement identity; at most 64 KiB |
{ "agent": "<string>", "measurement-id": "<string>", "runtime-generation": "<string>" }
Responses
11 responses
Status | Description | Type |
|---|---|---|
200 | Persisted record; sync-error means saved nonterminal status may be stale | object |
202 | Accepted asynchronously; record saved before this response | object |
400 | Invalid JSON, identity, ID or timing | object |
401 | Session required | object |
403 | Agent is not a routing agent of this task, or agent license denied | object |
404 | Task or measurement not found | object |
409 | Task, process, agent registration or idempotency conflict | object |
500 | Database error; post-dispatch persistence failure explicitly requires query | object |
502 | Agent authentication, address, transport, redirect, bounded response or contract error | object |
504 | Mutation deadline exceeded; outcome uncertain, query the same ID | object |
default | Other validated agent HTTP errors are preserved on mutation | object |
{ "agent": "<string>", "measurement-id": "<string>", "record": {}, "runtime-generation": "<string>", "saved": true, "status": "<string>", "sync-error": "<string>", "terminal": true, "updated-at": "<string>" }{ "agent": "<string>", "measurement-id": "<string>", "record": {}, "runtime-generation": "<string>", "saved": true, "status": "<string>", "sync-error": "<string>", "terminal": true, "updated-at": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{}