Update Article

PUT https://api.presshub.io/v1/article/:post_id

Updates existing article.

Notes
Not all integrations have ability to update content via API calls due to missing functionality in the third-party serice. You might want to check Settings page and configure available actions in case if update not supported.
Path Params
:post_id
string
required
The publication ID to update. Example: pub_1b203f8b.
Body JSON
template
array
required
Presshub template array. See Get Template Info endpoint for the template structure. See Presshub Template structure information.
services
array
required
Array of service names to update article in. See Notes above.
Body JSON Format
{
  "template": {
    "version": "1.0",
    "title": "Your Article Title. Updated",
    "subtitle": "Your Article Subtitle",
    "canonicalURL": "http://example.com/your-article-url.html",
    "keywords": [
      "Keyword1",
      "Keyword2",
      "Keyword3"
    ],
    "maturityRating": null,
    "language": "en",
    "thumbnail": "https://example.com/article-thumbnail.jpg",
    "template": "basic",
    "components": [
      {
        "map": "byline",
        "value": "By Author Name (updated)",
        "options": []
      },
      {
        "map": "featured_image",
        "value": "URL",
        "options": {
          "Caption": "Image caption",
          "Photographer": "Photo by Name"
        }
      },
      {
        "map": "body",
        "value": "<p>HTML content (updated)</p>",
        "options": []
      }
    ]
  },
  "services": {
    "AppleNews" : []
  }
}
Response Format
{
  "post_id": "pub_cb1a62f1",
  "data": {
    "AppleNews": {
      "data": {
        "createdAt": "2016-10-29T03:32:58Z",
        "modifiedAt": "2016-10-29T03:42:17Z",
        "id": "cec30f46-7110-471d-b932-f69d108d7f10",
        "type": "article",
        "shareUrl": "https://apple.news/A_sMcRncAEx25avadgI1_EA",
        "links": {
          "channel": "https://news-api.apple.com/channels/1da1dd1a-1435-4114-1111-aaf2161d314d",
          "self": "https://news-api.apple.com/articles/cec30f46-7110-471d-b932-f69d108d7f10",
          "sections": [
            "https://news-api.apple.com/sections/e135b10c-b2b8-3c56-9ce8-1f0001ae7b11"
          ]
        },
        "revision": "AAAAAAAAAAAAAAAAAAAABw==",
        "state": "PROCESSING_UPDATE",
        "accessoryText": null,
        "title": "Your Article Title. Updated",
        "maturityRating": null,
        "warnings": [],
        "isCandidateToBeFeatured": false,
        "isSponsored": false,
        "isPreview": false,
        "isDevelopingStory": false
      }
    }
  }
}