Forgejo · Schema

CreateAccessTokenOption

CreateAccessTokenOption options when create access token

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Properties

Name Type Description
name string
repositories array If provided and not-empty, creates an access token with access only to specified repositories.
scopes array
View JSON Schema on GitHub

JSON Schema

createaccesstokenoption.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CreateAccessTokenOption",
  "description": "CreateAccessTokenOption options when create access token",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "x-go-name": "Name"
    },
    "repositories": {
      "description": "If provided and not-empty, creates an access token with access only to specified repositories.",
      "type": "array",
      "items": {
        "$ref": "#/definitions/RepoTargetOption"
      },
      "x-go-name": "Repositories"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "Scopes",
      "example": [
        "all",
        "read:activitypub",
        "read:issue",
        "write:misc",
        "read:notification",
        "read:organization",
        "read:package",
        "read:repository",
        "read:user"
      ]
    }
  },
  "x-go-package": "forgejo.org/modules/structs"
}