DocumentationAPI reference

Rust · 0.1.0

CreatePersonalAccessTokenRequest

Application protocol schema. Field names and inherited descriptions are kept in their original language.

Where this schema is used

These links are derived from direct references in the protocol snapshot. Follow the calling operation for authentication, accepted fields and runtime behavior; a reusable resource schema is not by itself a complete write request.

Shape and fields

object

FieldType / requirementDescription
parentstring
Required
Required. The parent resource where this token will be created. Format: users/{user}
descriptionstringOptional. Description of the personal access token.
expiresInDaysinteger (int32)Optional. Expiration duration in days (0 = never expires).

Complete schema

Use this complete JSON definition for constraints and nested structure. A field's presence here does not mean it is writable by every caller.

{
  "required": [
    "parent"
  ],
  "type": "object",
  "properties": {
    "parent": {
      "type": "string",
      "description": "Required. The parent resource where this token will be created.\n Format: users/{user}"
    },
    "description": {
      "type": "string",
      "description": "Optional. Description of the personal access token."
    },
    "expiresInDays": {
      "type": "integer",
      "description": "Optional. Expiration duration in days (0 = never expires).",
      "format": "int32"
    }
  }
}