{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clickwise-net/json-schema/clickwise-net-link-batch-result-schema.json",
  "title": "LinkBatchResult",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clickwise-net-publisher-openapi.yml#/components/schemas/LinkBatchResult",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "status": {
            "type": "integer"
          },
          "link": {
            "$ref": "#/$defs/Link"
          },
          "error": {
            "$ref": "#/$defs/error"
          }
        }
      }
    },
    "created": {
      "type": "integer"
    },
    "existing": {
      "type": "integer"
    },
    "failed": {
      "type": "integer"
    }
  },
  "$defs": {
    "Link": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "created": {
          "type": "boolean"
        },
        "deeplink_id": {
          "type": "string"
        },
        "cw_link": {
          "type": "string",
          "format": "uri",
          "description": "The link to publish."
        },
        "destination_link": {
          "type": "string"
        },
        "subid": {
          "type": "string"
        },
        "certified_tracking_link": {
          "type": "string"
        }
      }
    }
  }
}