{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-content-permission-request-schema.json",
  "title": "ContentPermissionRequest",
  "description": "This object represents the request for the content permission check API.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-content-permissions-api-openapi.yml#/components/schemas/ContentPermissionRequest",
  "required": [
    "operation",
    "subject"
  ],
  "type": "object",
  "properties": {
    "subject": {
      "$ref": "#/$defs/PermissionSubjectWithGroupId"
    },
    "operation": {
      "type": "string",
      "description": "The content permission operation to check.",
      "enum": [
        "read",
        "update",
        "delete"
      ]
    }
  },
  "$defs": {
    "PermissionSubjectWithGroupId": {
      "required": [
        "identifier",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "user",
            "group"
          ]
        },
        "identifier": {
          "type": "string",
          "description": "for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users\n\nfor `type=group`, identifier should be ID of the group"
        }
      },
      "description": "The user or group that the permission applies to."
    }
  }
}