{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-system-policies-response-schema.json",
  "title": "SystemPoliciesResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-permissions-openapi.yml#/components/schemas/SystemPoliciesResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SystemPolicyResponseData"
      },
      "description": "An array of system policies."
    },
    "next_cursor": {
      "type": "string",
      "description": "When a request has more results to return, the next_cursor value is returned as part of the response. You can then specify this value as the cursor parameter of a following request."
    }
  },
  "$defs": {
    "ScopeTypeEnum": {
      "type": "string",
      "description": "Specifies where the role/policy is applied, either at the account level or within product environments.",
      "enum": [
        "account",
        "prodenv"
      ]
    },
    "SystemPolicyResponseData": {
      "type": "object",
      "required": [
        "id",
        "policy_statement",
        "created_at",
        "updated_at",
        "scope_type",
        "name"
      ],
      "properties": {
        "id": {
          "description": "The unique identifier of the policy.",
          "type": "string"
        },
        "name": {
          "description": "The name of the policy",
          "type": "string"
        },
        "description": {
          "description": "A short description of the policy.",
          "type": [
            "string",
            "null"
          ]
        },
        "scope_type": {
          "$ref": "#/$defs/ScopeTypeEnum"
        },
        "permission_type": {
          "description": "Specifies whether the permission applies globally across all resources or contexts within the scope (i.e., security settings for the account, or all folders in a product environment), or specifically to designated content instances (i.e., folder with external ID \"fg3841spr\").\n\n    - global\n\n    - content\n",
          "type": "string"
        },
        "policy_statement": {
          "description": "A Cedar policy that permits or forbids a certain action on a certain element to a principal (user, group, or API key).",
          "type": "string"
        },
        "policy_parameters": {
          "description": "For roles with `permission_type` set to `content`, this defines the type of content the role's policies apply to:\n- The content type can be: `folder_id` or `collection_id`.\n- When assigning the role, provide the instance, e.g. `{\"folder_id\":\"asdfjkl12347890\"}`. This specification is passed to the `policy_statement` (Cedar).\n",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "category": {
          "description": "The category of the policy.",
          "type": "string"
        },
        "sub_category": {
          "description": "The sub-category of the policy.",
          "type": "string"
        },
        "created_at": {
          "description": "Creation time of the policy in epoch time.",
          "type": "integer",
          "format": "int64"
        },
        "updated_at": {
          "description": "Last update time of the policy in epoch time.",
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}