Files
medusa-store/docs/api/admin/paths/admin_publishable-api-keys_{id}_revoke.yaml
2023-04-04 21:02:44 +03:00

49 lines
1.3 KiB
YAML

post:
operationId: PostPublishableApiKeysPublishableApiKeyRevoke
summary: Revoke PublishableApiKey
description: Revokes a PublishableApiKey.
parameters:
- in: path
name: id
required: true
description: The ID of the PublishableApiKey.
schema:
type: string
x-authenticated: true
x-codegen:
method: revoke
x-codeSamples:
- lang: JavaScript
label: JS Client
source:
$ref: >-
../code_samples/JavaScript/admin_publishable-api-keys_{id}_revoke/post.js
- lang: Shell
label: cURL
source:
$ref: ../code_samples/Shell/admin_publishable-api-keys_{id}_revoke/post.sh
security:
- api_token: []
- cookie_auth: []
tags:
- Publishable Api Keys
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: ../components/schemas/AdminPublishableApiKeysRes.yaml
'400':
$ref: ../components/responses/400_error.yaml
'401':
$ref: ../components/responses/unauthorized.yaml
'404':
$ref: ../components/responses/not_found_error.yaml
'409':
$ref: ../components/responses/invalid_state_error.yaml
'422':
$ref: ../components/responses/invalid_request_error.yaml
'500':
$ref: ../components/responses/500_error.yaml