{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-update-used-by-request-schema.json",
  "title": "UpdateUsedByRequest",
  "description": "Request to add or remove a consumer from the usedBy list of a module.",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-folio-query-tool-metadata-querytool-openapi.yml#/components/schemas/updateUsedByRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the consumer to add/remove."
    },
    "operation": {
      "type": "string",
      "enum": [
        "add",
        "remove"
      ],
      "description": "The operation to perform."
    }
  },
  "required": [
    "module",
    "operation"
  ]
}