{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/outsystems/main/json-schema/outsystems-organization-role-update-request-schema.json",
  "title": "OrganizationRoleUpdateRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outsystems-organization-roles-api-openapi.yml#/components/schemas/OrganizationRoleUpdateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gets or sets the name of the organization role."
    },
    "permissions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/PermissionDetailsRequest"
      },
      "description": "Gets or sets the list of permissions for the organization role."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "PermissionDetailsRequest": {
      "type": "object",
      "properties": {
        "permissionKey": {
          "type": "string",
          "description": "Gets or sets the permission key.",
          "format": "uuid"
        },
        "environmentKeys": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "description": "Gets or sets the environment keys."
        },
        "portfolioKeys": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "description": "Gets or sets the portfolio keys."
        },
        "claimName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or sets the claim name."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or sets the permission name."
        }
      },
      "additionalProperties": false
    }
  }
}