Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
post:
|
|
operationId: PostPublishableApiKeysPublishableApiKeyRevoke
|
|
summary: Revoke a Publishable API Key
|
|
description: >-
|
|
Revoke a Publishable API Key. Revoking the publishable API Key can't be
|
|
undone, and the key can't be used in future requests.
|
|
parameters:
|
|
- in: path
|
|
name: id
|
|
required: true
|
|
description: The ID of the Publishable API Key.
|
|
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
|