{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-role-permission-bulk-update-request-schema.json",
  "title": "RolePermissionBulkUpdateRequest",
  "description": "Request body for adding and/or removing permissions from a role in a single operation",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-role-api-openapi.yml#/components/schemas/RolePermissionBulkUpdateRequest",
  "type": "object",
  "properties": {
    "add": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of permissions to add to the role. Omit or leave empty if only removing."
    },
    "remove": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of permissions to remove from the role. Omit or leave empty if only adding."
    }
  }
}