GitHub · JSON Structure

Github App Api Application Grant Structure

The authorization associated with an OAuth Access.

Type: object Properties: 7 Required: 6
CodePipelinesPlatformSoftware DevelopmentSource ControlT1

application-grant is a JSON Structure definition published by GitHub, describing 7 properties, of which 6 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id url app created_at updated_at scopes user

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-structure/github-app-api-application-grant-structure.json",
  "name": "application-grant",
  "description": "The authorization associated with an OAuth Access.",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "example": 1
    },
    "url": {
      "type": "uri",
      "example": "https://api.github.com/applications/grants/1"
    },
    "app": {
      "type": "object",
      "properties": {
        "client_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "uri"
        }
      },
      "required": [
        "client_id",
        "name",
        "url"
      ]
    },
    "created_at": {
      "type": "datetime",
      "example": "2011-09-06T17:26:27Z"
    },
    "updated_at": {
      "type": "datetime",
      "example": "2011-09-06T20:39:23Z"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "public_repo"
      ]
    },
    "user": {
      "$ref": "#/components/schemas/nullable-simple-user"
    }
  },
  "required": [
    "app",
    "id",
    "scopes",
    "url",
    "created_at",
    "updated_at"
  ]
}