Disable Token

Disable the API token.

post

/v1/accounts/api-tokens/{id}/disable

Path parameters
idstringrequired
Responses
curl -L \
  --request POST \
  --url '/v1/accounts/api-tokens/{id}/disable'
{
  "id": "text",
  "audit": {
    "created": {
      "at": "2025-02-21T18:02:53.773Z",
      "by": {
        "id": "text",
        "audit": {
          "created": {
            "at": "2025-02-21T18:02:53.773Z",
            "by": "[Circular Reference]"
          },
          "updated": {
            "at": "2025-02-21T18:02:53.773Z",
            "by": "[Circular Reference]"
          }
        },
        "$meta": {
          "omitted": [
            "text"
          ]
        },
        "href": "text",
        "name": "text",
        "icon": "text"
      }
    },
    "updated": {
      "at": "2025-02-21T18:02:53.773Z",
      "by": "[Circular Reference]"
    }
  },
  "$meta": {
    "omitted": [
      "text"
    ]
  },
  "href": "text",
  "status": "text",
  "name": "text",
  "description": "text",
  "icon": "text",
  "lastAccessAt": "2025-02-21T18:02:53.773Z",
  "token": "text",
  "account": {
    "id": "text",
    "audit": {
      "created": {
        "at": "2025-02-21T18:02:53.773Z",
        "by": {
          "id": "text",
          "audit": {
            "created": {
              "at": "2025-02-21T18:02:53.773Z",
              "by": "[Circular Reference]"
            },
            "updated": {
              "at": "2025-02-21T18:02:53.773Z",
              "by": "[Circular Reference]"
            }
          },
          "$meta": {
            "omitted": [
              "text"
            ]
          },
          "href": "text",
          "name": "text",
          "icon": "text"
        }
      },
      "updated": {
        "at": "2025-02-21T18:02:53.773Z",
        "by": "[Circular Reference]"
      }
    },
    "$meta": {
      "omitted": [
        "text"
      ]
    },
    "href": "text",
    "externalIds": {
      "pyraTenantId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "externalId": "text",
    "externalName": "text",
    "type": "Client",
    "status": "Active",
    "serviceLevel": "Express",
    "address": {
      "addressLine1": "text",
      "addressLine2": "text",
      "postCode": "text",
      "city": "text",
      "state": "text",
      "country": "text"
    },
    "icon": "text",
    "technicalSupportEmail": "hello@example.com",
    "website": "text",
    "description": "text",
    "name": "text",
    "groups": [
      {
        "id": "text",
        "audit": {
          "created": {
            "at": "2025-02-21T18:02:53.773Z",
            "by": {
              "id": "text",
              "audit": {
                "created": {
                  "at": "2025-02-21T18:02:53.773Z",
                  "by": "[Circular Reference]"
                },
                "updated": {
                  "at": "2025-02-21T18:02:53.773Z",
                  "by": "[Circular Reference]"
                }
              },
              "$meta": {
                "omitted": [
                  "text"
                ]
              },
              "href": "text",
              "name": "text",
              "icon": "text"
            }
          },
          "updated": {
            "at": "2025-02-21T18:02:53.773Z",
            "by": "[Circular Reference]"
          }
        },
        "$meta": {
          "omitted": [
            "text"
          ]
        },
        "href": "text",
        "name": "text",
        "description": "text",
        "account": {
          "id": "text",
          "audit": {
            "created": {
              "at": "2025-02-21T18:02:53.773Z",
              "by": {
                "id": "text",
                "audit": {
                  "created": {
                    "at": "2025-02-21T18:02:53.773Z",
                    "by": "[Circular Reference]"
                  },
                  "updated": {
                    "at": "2025-02-21T18:02:53.773Z",
                    "by": "[Circular Reference]"
                  }
                },
                "$meta": {
                  "omitted": [
                    "text"
                  ]
                },
                "href": "text",
                "name": "text",
                "icon": "text"
              }
            },
            "updated": {
              "at": "2025-02-21T18:02:53.773Z",
              "by": "[Circular Reference]"
            }
          },
          "$meta": {
            "omitted": [
              "text"
            ]
          },
          "href": "text",
          "externalIds": {
            "pyraTenantId": "123e4567-e89b-12d3-a456-426614174000"
          },
          "externalId": "text",
          "externalName": "text",
          "type": "Client",
          "status": "Active",
          "serviceLevel": "Express",
          "address": {
            "addressLine1": "text",
            "addressLine2": "text",
            "postCode": "text",
            "city": "text",
            "state": "text",
            "country": "text"
          },
          "icon": "text",
          "technicalSupportEmail": "hello@example.com",
          "website": "text",
          "description": "text",
          "name": "text",
          "groups": [
            "[Circular Reference]"
          ]
        },
        "logo": "text",
        "isDefault": true,
        "modules": [
          {
            "id": "text",
            "audit": "[Circular Reference]",
            "$meta": {
              "omitted": [
                "text"
              ]
            },
            "href": "text",
            "description": "text",
            "isConfigurable": true,
            "isEnabledByDefault": true,
            "paid": true,
            "name": "text",
            "filters": {
              "group.buyers": [
                "text"
              ]
            },
            "settings": {
              "sharedAccount": true,
              "configurable": true,
              "default": true,
              "paid": true,
              "type": [
                "text"
              ]
            },
            "accountTypes": [
              "text"
            ]
          }
        ],
        "users": [
          {
            "id": "text",
            "audit": "[Circular Reference]",
            "$meta": {
              "omitted": [
                "text"
              ]
            },
            "href": "text",
            "email": "text",
            "status": "text",
            "phone": {
              "prefix": "text",
              "number": "text"
            },
            "firstName": "text",
            "lastName": "text",
            "icon": "text",
            "lastLoginAt": "2025-02-21T18:02:53.773Z",
            "settings": {
              "cultureCode": "text",
              "languageCode": "text"
            },
            "name": "text",
            "currentAccount": "[Circular Reference]",
            "accounts": "[Circular Reference]"
          }
        ],
        "buyers": [
          {
            "id": "text",
            "audit": "[Circular Reference]",
            "$meta": {
              "omitted": [
                "text"
              ]
            },
            "href": "text",
            "contact": "[Circular Reference]",
            "externalIds": {
              "erpCompanyContact": "text",
              "erpCustomer": "text",
              "accountExternalId": "text"
            },
            "status": "Active",
            "icon": "text",
            "address": {
              "addressLine1": "text",
              "addressLine2": "text",
              "postCode": "text",
              "city": "text",
              "state": "text",
              "country": "text"
            },
            "taxId": "text",
            "account": "[Circular Reference]",
            "name": "text",
            "errors": [
              {
                "id": "text",
                "message": "text",
                "parameters": null
              }
            ],
            "sellers": "[Circular Reference]"
          }
        ]
      }
    ]
  },
  "modules": [
    {
      "id": "text",
      "audit": {
        "created": {
          "at": "2025-02-21T18:02:53.773Z",
          "by": {
            "id": "text",
            "audit": {
              "created": {
                "at": "2025-02-21T18:02:53.773Z",
                "by": "[Circular Reference]"
              },
              "updated": {
                "at": "2025-02-21T18:02:53.773Z",
                "by": "[Circular Reference]"
              }
            },
            "$meta": {
              "omitted": [
                "text"
              ]
            },
            "href": "text",
            "name": "text",
            "icon": "text"
          }
        },
        "updated": {
          "at": "2025-02-21T18:02:53.773Z",
          "by": "[Circular Reference]"
        }
      },
      "$meta": {
        "omitted": [
          "text"
        ]
      },
      "href": "text",
      "description": "text",
      "isConfigurable": true,
      "isEnabledByDefault": true,
      "paid": true,
      "name": "text",
      "filters": {
        "group.buyers": [
          "text"
        ]
      },
      "settings": {
        "sharedAccount": true,
        "configurable": true,
        "default": true,
        "paid": true,
        "type": [
          "text"
        ]
      },
      "accountTypes": [
        "text"
      ]
    }
  ]
}

Last updated

Was this helpful?