---
updatedAt: 2026-09-03T15:19:29.000Z
agentTools:
  projectIndex: https://docs.pennsieve.io/llms.txt
---

# updates the API Token if the requesting User has access to it

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Pennsieve Swagger",
    "version": "1.0.0",
    "description": "Swagger documentation for the Pennsieve api",
    "termsOfService": "https://docs.pennsieve.io/docs/pennsieve-terms-of-service",
    "contact": {
      "name": "Pennsieve Team",
      "url": "https://docs.pennsieve.io",
      "email": "support@pennsieve.net"
    },
    "license": {
      "name": "All rights reserved",
      "url": "https://docs.pennsieve.io"
    }
  },
  "paths": {
    "/token/{uuid}": {
      "put": {
        "operationId": "updateAPIToken",
        "summary": "updates the API Token if the requesting User has access to it",
        "tags": [
          "API Token"
        ],
        "deprecated": false,
        "parameters": [
          {
            "name": "uuid",
            "description": "API Token UUID",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTokenRequest"
              }
            }
          },
          "description": "API Token Updates",
          "required": true
        },
        "responses": {
          "200": {
            "description": "No response"
          }
        },
        "security": [
          {
            "api_key": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "//api.pennsieve.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "description": "",
        "name": "api_key",
        "in": "query"
      }
    },
    "schemas": {
      "UpdateTokenRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```