Отозвать согласование
DELETE
/api/v1/approvals/{id}AuthorizationBearer <токен>
Access token, привязанный к ключу клиента по RFC 9449: заголовок Authorization: DPoP <token> и заголовок DPoP с доказательством для каждого запроса. Сервер выдаёт DPoP-Nonce, который клиент включает в доказательство.
Передаётся в: header
Параметры пути
id*string
Идентификатор согласования
Формат
uuidТело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://example.com/api/v1/approvals/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{}'{ "comments": [ { "createdAt": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "text": "string", "userId": "string", "userName": "string" } ], "completedAt": "string", "context": "string", "createdAt": "string", "currentStage": 0, "documentId": "string", "documentIds": [ "string" ], "documentTitle": "string", "history": [ {} ], "historyChainValid": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "initiatorId": "string", "initiatorName": "string", "participants": [ { "action": "string", "comment": "string", "decidedById": "string", "decidedByName": "string", "deputyUntil": "string", "deputyUserId": "string", "deputyUserName": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "rejectedItemIds": [ "string" ], "stageNumber": 0, "status": "string", "userId": "string", "userName": "string" } ], "revisions": [ {} ], "round": 0, "stages": [ { "approvalMode": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "participants": [ { "action": "string", "comment": "string", "decidedById": "string", "decidedByName": "string", "deputyUntil": "string", "deputyUserId": "string", "deputyUserName": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "rejectedItemIds": [ "string" ], "stageNumber": 0, "status": "string", "userId": "string", "userName": "string" } ], "stageNumber": 0, "status": "string" } ], "status": "string", "subjectKind": "string", "teamId": "string", "totalStages": 0, "type": "string", "updatedAt": "string"}