{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-patched-oauth2-application-schema.json",
  "title": "PatchedOAuth2Application",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-applications-api-openapi.yml#/components/schemas/PatchedOAuth2Application",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "url": {
      "type": "string",
      "readOnly": true
    },
    "related": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "readOnly": true
    },
    "summary_fields": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {}
      },
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "The date/time this resource was created."
    },
    "created_by": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true,
      "description": "The user who created this resource."
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "The date/time this resource was created."
    },
    "modified_by": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true,
      "description": "The user who last modified this resource."
    },
    "name": {
      "type": "string",
      "description": "The name of this resource.",
      "maxLength": 512
    },
    "client_id": {
      "type": "string",
      "readOnly": true
    },
    "redirect_uris": {
      "type": "string",
      "description": "Allowed URIs list, space separated"
    },
    "post_logout_redirect_uris": {
      "type": "string",
      "description": "Allowed Post Logout URIs list, space separated"
    },
    "algorithm": {
      "enum": [
        "",
        "RS256",
        "HS256"
      ],
      "type": "string",
      "description": "* `` - No OIDC support\n* `RS256` - RSA with SHA-2 256\n* `HS256` - HMAC with SHA-2 256",
      "x-spec-enum-id": "efb8c99632a46c3d"
    },
    "user": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The user who created the application."
    },
    "description": {
      "type": "string",
      "description": "A description of this application."
    },
    "organization": {
      "type": "integer",
      "description": "Organization containing this application."
    },
    "app_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "title": "Application URL",
      "description": "The URL of this application.",
      "maxLength": 200
    },
    "client_secret": {
      "type": "string",
      "readOnly": true,
      "description": "Hashed on Save. Copy it now if this is a new secret."
    },
    "client_type": {
      "enum": [
        "confidential",
        "public"
      ],
      "type": "string",
      "x-spec-enum-id": "6de8a18fd0ba1b55",
      "description": "Set to Public or Confidential depending on how secure the client device is.\n\n* `confidential` - Confidential\n* `public` - Public"
    },
    "skip_authorization": {
      "type": "boolean",
      "description": "Set True to skip authorization step for completely trusted applications."
    },
    "authorization_grant_type": {
      "enum": [
        "authorization-code",
        "password"
      ],
      "type": "string",
      "x-spec-enum-id": "97829bf36e0a77bf",
      "description": "The Grant type the user must use for acquire tokens for this application.\n\n* `authorization-code` - Authorization code\n* `password` - Resource owner password-based"
    }
  }
}