{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BulkEditShareableEntityRequest",
  "title": "BulkEditShareableEntityRequest",
  "additionalProperties": false,
  "description": "Details of a request to bulk edit shareable entity.",
  "properties": {
    "action": {
      "description": "Allowed action for bulk edit shareable entity",
      "enum": [
        "changeOwner",
        "changePermission",
        "addPermission",
        "removePermission"
      ],
      "type": "string"
    },
    "changeOwnerDetails": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BulkChangeOwnerDetails"
        }
      ],
      "description": "The details of change owner action."
    },
    "entityIds": {
      "description": "The id list of shareable entities to be changed.",
      "items": {
        "format": "int64",
        "type": "integer"
      },
      "type": "array",
      "uniqueItems": true
    },
    "extendAdminPermissions": {
      "description": "Whether the actions are executed by users with Administer Jira global permission.",
      "type": "boolean"
    },
    "permissionDetails": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PermissionDetails"
        }
      ],
      "description": "The permission details to be changed."
    }
  },
  "required": [
    "action",
    "entityIds"
  ],
  "type": "object"
}