{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Publish a staged draft by making a POST request to\n`https://api.intercom.io/articles/<id>/draft/publish`, promoting the draft\ncontent to live.\n\nOn a single-language workspace no body is required. On a multilingual\nworkspace you must list which locales to publish via the `locales` array;\nomitting it returns `422`. Returns `422` when there is no staged draft to\npublish, or when a requested locale has no pending changes.\n\nThe `422` for no staged draft has the short body\n`{ \"errors\": [{ \"message\": \"...\", \"status\": 422 }] }`, with no `type`,\n`request_id` or `code`. The other `422` errors use the standard error format.\n\nRequires the `read_write_articles_scope` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"id":{"type":"integer","examples":[123],"description":"The unique identifier for the article which is given by Intercom."}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/definitions/publish_article_draft_request","examples":[{"locales":["en","fr"]}]}},"required":["path"],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"publish_article_draft_request":{"description":"Optional body for publishing a staged article draft. On a single-language\nworkspace the body can be omitted. On a multilingual workspace, `locales`\nis required and lists which locales' drafts to publish.\n","type":["object","null"],"title":"Publish Article Draft Request Payload","properties":{"locales":{"type":"array","description":"The locales whose staged drafts should be published. Required on\nmultilingual workspaces; each locale must have a pending draft.\n","items":{"type":"string"},"examples":[["en","fr"]]},"author_id":{"type":"integer","description":"The id of the teammate to publish as. This is only used when the access token is not associated with a teammate, and is then required; omitting it returns 400 `parameter_not_found`. Otherwise the authenticating teammate is used. Must be a teammate on the workspace.","examples":[1295]}}}}},"name":"Publish an article draft","id":"intercom.publisharticledraft","example":{"path":{"id":123}},"maxRequests":1,"summary":false}}