{
  "provider": "custom",
  "label": "DiveJourney existing article API",
  "origin": "https://divejourney.io",
  "authHeader": "Authorization",
  "probePath": "/agent/posts?limit=1",
  "readPath": "/agent/posts/{id}",
  "idPointer": "/item/slug",
  "responseIdPointer": "/slug",
  "statusPointer": "/item/status",
  "publishedValue": "published",
  "draftValue": "draft",
  "revisionPointer": "/etag",
  "urlPointer": "/public_url",
  "publishedAtPointer": "/item/published_at",
  "fields": [
    {
      "name": "title",
      "pointer": "/item/title"
    },
    {
      "name": "body_md",
      "pointer": "/item/body_md"
    },
    {
      "name": "excerpt_md",
      "pointer": "/item/excerpt_md"
    },
    {
      "name": "status",
      "pointer": "/item/status"
    },
    {
      "name": "published_at",
      "pointer": "/item/published_at"
    },
    {
      "name": "config",
      "pointer": "/item/config"
    },
    {
      "name": "seo_title",
      "pointer": "/item/seo_title"
    },
    {
      "name": "seo_description",
      "pointer": "/item/seo_description"
    },
    {
      "name": "seo",
      "pointer": "/item/seo"
    },
    {
      "name": "tags",
      "pointer": "/tags"
    },
    {
      "name": "spot_slugs",
      "pointer": "/spot_slugs"
    },
    {
      "name": "destination_slugs",
      "pointer": "/destination_slugs"
    },
    {
      "name": "shop_slugs",
      "pointer": "/shop_slugs"
    },
    {
      "name": "country_codes",
      "pointer": "/country_codes"
    }
  ],
  "draft": {
    "method": "PUT",
    "path": "/agent/posts/{id}",
    "headers": {
      "If-None-Match": "*"
    },
    "schema": "{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"title\":{\"type\":\"string\",\"minLength\":3,\"maxLength\":140},\"body_md\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":100000},\"excerpt_md\":{\"type\":[\"string\",\"null\"],\"maxLength\":2000},\"status\":{\"const\":\"draft\"},\"published_at\":{\"type\":\"null\"},\"config\":{\"type\":[\"object\",\"null\"],\"additionalProperties\":true},\"seo_title\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":180},\"seo_description\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":500},\"seo\":{\"type\":\"object\",\"additionalProperties\":true},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"enum\":[\"audience\",\"activity\",\"format\",\"topic\",\"geo\"]},\"slug\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200},\"label\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200}},\"required\":[\"type\",\"slug\",\"label\"]}},\"spot_slugs\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200}},\"destination_slugs\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200}},\"shop_slugs\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":1,\"maxLength\":200}},\"country_codes\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"minLength\":2,\"maxLength\":2,\"description\":\"Uppercase ISO2 country code, /^[A-Z]{2}$/. Enforced by the CMS.\"}}},\"required\":[\"title\",\"body_md\",\"excerpt_md\",\"status\",\"published_at\",\"config\",\"seo_title\",\"seo_description\",\"seo\",\"tags\",\"spot_slugs\",\"destination_slugs\",\"shop_slugs\",\"country_codes\"],\"description\":\"Selected request shape for the existing DiveJourney article API. The API validates full SEO/domain rules. Prepare exact final CMS values before review; Kitecraft never silently normalizes approved content.\"}",
    "mapping": {
      "request": [
        {
          "to": "/title",
          "from": "/title"
        },
        {
          "to": "/body_md",
          "from": "/bodyMarkdown"
        },
        {
          "to": "/excerpt_md",
          "from": "/excerpt"
        },
        {
          "to": "/status",
          "value": "draft"
        },
        {
          "to": "/published_at",
          "value": null
        },
        {
          "to": "/config",
          "from": "/config"
        },
        {
          "to": "/seo_title",
          "from": "/seoTitle"
        },
        {
          "to": "/seo_description",
          "from": "/seoDescription"
        },
        {
          "to": "/seo",
          "from": "/seo"
        },
        {
          "to": "/tags",
          "from": "/tags"
        },
        {
          "to": "/spot_slugs",
          "from": "/spot_slugs"
        },
        {
          "to": "/destination_slugs",
          "from": "/destination_slugs"
        },
        {
          "to": "/shop_slugs",
          "from": "/shop_slugs"
        },
        {
          "to": "/country_codes",
          "from": "/country_codes"
        }
      ],
      "expected": [
        {
          "to": "/title",
          "from": "/title"
        },
        {
          "to": "/body_md",
          "from": "/bodyMarkdown"
        },
        {
          "to": "/excerpt_md",
          "from": "/excerpt"
        },
        {
          "to": "/status",
          "value": "draft"
        },
        {
          "to": "/published_at",
          "value": null
        },
        {
          "to": "/config",
          "from": "/config"
        },
        {
          "to": "/seo_title",
          "from": "/seoTitle"
        },
        {
          "to": "/seo_description",
          "from": "/seoDescription"
        },
        {
          "to": "/seo",
          "from": "/seo"
        },
        {
          "to": "/tags",
          "from": "/tags"
        },
        {
          "to": "/spot_slugs",
          "from": "/spot_slugs"
        },
        {
          "to": "/destination_slugs",
          "from": "/destination_slugs"
        },
        {
          "to": "/shop_slugs",
          "from": "/shop_slugs"
        },
        {
          "to": "/country_codes",
          "from": "/country_codes"
        }
      ]
    }
  },
  "publish": null,
  "update": null,
  "preconditionHeader": null
}
