{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-post-tag-response-doc-schema.json",
  "title": "PostTagResponseDoc",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-tags-api-openapi.yml#/components/schemas/PostTagResponseDoc",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/PostTagResponse"
    },
    "exceptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResponseException"
      }
    }
  },
  "$defs": {
    "PostTagResponse": {
      "type": "object",
      "properties": {
        "tag": {
          "$ref": "#/$defs/PostTagResponseDto"
        }
      }
    },
    "PostTagResponseDto": {
      "type": "object",
      "properties": {
        "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."
        }
      },
      "required": [
        "resourceId",
        "resourceType"
      ]
    },
    "ResponseException": {
      "type": "object",
      "properties": {
        "errorCode": {
          "type": "string",
          "description": "The GBL error code that is populated when the exceptionSource is SYSTEM"
        },
        "exceptionSource": {
          "type": "string",
          "description": "Characterizes the type of exception (JSON, SYSTEM, PARAMETER)"
        },
        "exceptionMessage": {
          "type": "string",
          "description": "Additional information about the exception"
        }
      }
    }
  }
}