Change and persist one RSVP-TE label pool start
POST
/tasks/{id}/rsvp/label-pool/applyChanges the start of a free RSVP label pool on a RUNNING routing agent. Requires the current saved profile revision, runtime generation, native start and a unique 32-digit lowercase hexadecimal operation ID. The existing pool size is retained. Native dry-run precedes durable admission; a pool with active or fixed labels is rejected. HTTP 202 means admission only: poll label-pool/query until terminal persisted. Dispatch is sealed before one native call; recovery observes the same generation and operation receipt twice, then atomically saves the new task profile. An ambiguous response is never blindly resent.
Контракт
Параметр | Значение |
|---|---|
| Раздел | tasks |
| Авторизация | CookieAuth |
| Принимает | application/json |
| Возвращает | application/json |
Параметры
2 параметров
Имя | Где | Обязательный | Тип | Описание |
|---|---|---|---|---|
| id | path | да | integer | Task ID |
| request | body | да | object | Agent, instance, new start and current guards |
{ "agent": "<string>", "expected-label-range-start": 0, "expected-profile-revision": "<string>", "instance": 0, "label-range-start": 0, "operation-id": "<string>", "runtime-generation": "<string>" }
Ответы
9 ответов
Статус | Описание | Тип |
|---|---|---|
202 | Durable admission; query terminal status | object |
400 | Invalid request or profile label pool | object |
401 | Session required | object |
403 | Agent is not registered for this task or license denied | object |
404 | Task, routing agent or RSVP instance not found | object |
409 | Task, profile, runtime or operation conflict | object |
500 | Database failure | object |
502 | Agent transport or response contract failure before admission | object |
default | Native validation errors are preserved | object |
{ "agent": "<string>", "created-at": "<string>", "dispatched": true, "expected-label-range-start": 0, "expires-at": "<string>", "instance": 0, "label-range-start": 0, "operation-id": "<string>", "reason": "<string>", "runtime-generation": "<string>", "status": "<string>", "task-id": 0, "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>" }{}