github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/authorizations/destroy.yaml (about)

     1  ---
     2  summary: Delete an authorization
     3  description: Delete an existing authorization. API calls using that token will stop working.
     4  operationId: authorization/delete
     5  tags:
     6  - Authorizations
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/id"
    10  responses:
    11    '204':
    12      "$ref": "../../responses.yaml#/204"
    13    '400':
    14      "$ref": "../../responses.yaml#/400"
    15    '404':
    16      "$ref": "../../responses.yaml#/404"
    17    '429':
    18      "$ref": "../../responses.yaml#/429"
    19  x-code-samples:
    20  - lang: Curl
    21    source: |-
    22      curl "https://api.phrase.com/v2/authorizations/:id" \
    23        -u USERNAME \
    24        -X DELETE
    25  - lang: CLI v2
    26    source: |-
    27      phrase authorizations delete \
    28      --id <id>
    29  x-cli-version: '2.5'