# /organizations/{organizationId}/subaccounts/{subaccountId}/memberships/{membershipId}/personalAccessTokens/{patId}

Revoke a Personal Access Token belonging to a subaccount user.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Partner API",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://admin.formstack.com/api/v1",
      "description": "Partner API"
    }
  ],
  "paths": {
    "/organizations/{organizationId}/subaccounts/{subaccountId}/memberships/{membershipId}/personalAccessTokens/{patId}": {
      "delete": {
        "tags": [
          "PartnerApi"
        ],
        "description": "Revoke a Personal Access Token belonging to a subaccount user.",
        "operationId": "revokeSubaccountMembershipPersonalAccessToken",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "ID of the parent organization",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "b443d63c-3e37-11f1-8898-0242ac000003"
            }
          },
          {
            "name": "subaccountId",
            "in": "path",
            "description": "ID of the subaccount",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "8ecb0a3c-3e38-11f1-96c0-0242ac000003"
            }
          },
          {
            "name": "membershipId",
            "in": "path",
            "description": "ID of the membership",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "2b609bb4-3e57-11f1-8a46-0242ac000003"
            }
          },
          {
            "name": "patId",
            "in": "path",
            "description": "ID of the Personal Access Token to revoke",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "b443d63c-3e37-11f1-8898-0242ac000003"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Personal Access Token revoked"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Organization, subaccount, membership, or PAT not found"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer authentication"
      }
    }
  },
  "tags": [
    {
      "name": "PartnerApi",
      "description": "PartnerApi"
    }
  ]
}
```