swag-api-keys-v2/api/apikeys/spec/paths/orgs@{partyId}@api-keys@{apiKeyId}@status.yaml
ndiezel0 73d97d2d06
TD-635: Add initial specs (#1)
* TD-635: Add initial specs

* Add workflows

* Fix tests

* Add 404 to listApiKeys
2023-06-08 12:49:29 +05:00

33 lines
961 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
put:
summary: Запросить отзыв ключа
description: |
Просит отозвать Api Key, для подтверждения запроса
посылает на почту запросившего письмо с ссылкой на
revokeApiKey для подтверждения операции
operationId: requestRevokeApiKey
tags:
- apiKeys
parameters:
- $ref: '#/parameters/requestID'
- $ref: '#/parameters/deadline'
- $ref: '#/parameters/partyId'
- $ref: '#/parameters/apiKeyId'
- name: status
description: Status to change Api Key into
in: body
required: true
schema:
type: string
enum:
- Revoked
responses:
'204':
description: Запрос на операцию получен
"404":
$ref: "#/responses/NotFound"
'401':
$ref: "#/responses/Unauthorized"
'400':
$ref: '#/responses/BadRequest'