Share feedback
Answers are generated based on the documentation.

Schema

createOrgAccessTokenRequest

Type: object

description

Type: string

Description of the access token
All schema constraints and annotations
{
  "description": "Description of the access token",
  "example": "Token for CI/CD pipeline",
  "type": "string"
}
expires_at

Type: string | null

Expiration date for the token
All schema constraints and annotations
{
  "description": "Expiration date for the token",
  "example": "2023-05-20T00:54:18Z",
  "format": "date-time",
  "type": [
    "string",
    "null"
  ]
}
label · required

Type: string

Label for the access token
All schema constraints and annotations
{
  "description": "Label for the access token",
  "example": "My organization token",
  "type": "string"
}
resources · required

Type: array

Resources this token has access to
Array item

Schema: orgAccessTokenResource

All schema constraints and annotations
{
  "description": "Resources this token has access to",
  "items": {
    "$ref": "#/components/schemas/orgAccessTokenResource"
  },
  "minItems": 1,
  "type": "array"
}
All schema constraints and annotations
{
  "examples": [
    {
      "description": "Token for CI/CD pipeline",
      "label": "My organization token",
      "resources": [
        {
          "path": "myorg/myrepo",
          "scopes": [
            "scope-image-pull"
          ],
          "type": "TYPE_REPO"
        }
      ]
    }
  ],
  "properties": {
    "description": {
      "description": "Description of the access token",
      "example": "Token for CI/CD pipeline",
      "type": "string"
    },
    "expires_at": {
      "description": "Expiration date for the token",
      "example": "2023-05-20T00:54:18Z",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "label": {
      "description": "Label for the access token",
      "example": "My organization token",
      "type": "string"
    },
    "resources": {
      "description": "Resources this token has access to",
      "items": {
        "$ref": "#/components/schemas/orgAccessTokenResource"
      },
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "label",
    "resources"
  ],
  "type": "object"
}