{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-patch-group-resource-schema.json",
  "title": "PatchGroupResource",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-group-api-openapi.yml#/components/schemas/PatchGroupResource",
  "type": "object",
  "required": [
    "schemas",
    "Operations"
  ],
  "properties": {
    "schemas": {
      "type": "array",
      "description": "Identifies which schema(s) this resource uses. In this case it is the PatchOp schema.",
      "enum": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
      ],
      "items": {
        "type": "string"
      }
    },
    "Operations": {
      "type": "array",
      "description": "A list of patch operations. <br><br> Multiple users can be added or removed from the group (team) in one request. use the array to add or remove multiple users.<br><br> For updating security group name: <br> \"op\"=\"replace\", \"value\"={\"id\":\"13266533725732\", \"displayName\":\"New group name\"} must be provided in the Operations array.",
      "items": {
        "type": "object",
        "required": [
          "op"
        ],
        "properties": {
          "op": {
            "type": "string",
            "description": "Supported operations for this Patch request.",
            "enum": [
              "Add",
              "Remove",
              "Replace"
            ]
          },
          "path": {
            "type": "string",
            "description": "The \"path\" attribute value is a string containing an attribute path describing the target of the operation. The \"path\" attribute is optional for the \"add\", and \"replace\" operations and is required for the \"remove\" operation. <br><br> ",
            "enum": [
              "members",
              "displayName"
            ]
          },
          "value": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "value"
                  ],
                  "properties": {
                    "value": {
                      "type": "string",
                      "description": "A server-assigned, unique identifier for the user to be added, removed, or replaced."
                    }
                  }
                }
              },
              {
                "type": "string",
                "description": "Human-readable name of the group to be updated."
              }
            ]
          }
        }
      }
    }
  }
}