{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-patch-tag-request-doc-schema.json",
  "title": "PatchTagRequestDoc",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-tags-api-openapi.yml#/components/schemas/PatchTagRequestDoc",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/PatchTagRequestDtoDoc"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "PatchTagRequestDtoDoc": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "resourceType": {
          "type": "string",
          "description": "Indicates the type of resource for which the tags will be added. Possible values are: MEMBER, CLIENT_ORG, MEMBER_TRANSACTION"
        },
        "resourceId": {
          "type": "string",
          "description": "Indicates the key based on the type of resource.  For a member, this will be client member ID.  For a transaction, this will be transaction reference ID.  For a client org, this will be client org name."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TagDtoDoc"
          }
        }
      },
      "required": [
        "resourceId",
        "resourceType"
      ]
    },
    "TagDtoDoc": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Constant used to define the metadata within a key-value pair"
        },
        "value": {
          "type": "string",
          "description": "Variable belonging to the metadata within a key-value pair"
        },
        "type": {
          "type": "string",
          "description": "Additional client-defined qualifier that may be used to further classify the key-value pair"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}