> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Intercom Update News Item: Inputs, Cost & CLI Example

> Update a news item. Intercom Intercom Update News Item docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=intercom_update_news_item:{"news_item_id":"{{news_item_id}}","title":"{{title}}","sender_id":"{{sender_id}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                           | Type                | Required | Default | Description                                                                                                   |
| ------------------------------ | ------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------- |
| `payload.news_item_id`         | `integer`           | Yes      |         | The unique identifier for the news item which is given by Intercom.                                           |
| `payload.title`                | `string`            | Yes      |         | The title of the news item.                                                                                   |
| `payload.body`                 | `string`            | No       |         | The news item body, which may contain HTML.                                                                   |
| `payload.sender_id`            | `integer`           | Yes      |         | The id of the sender of the news item. Must be a teammate on the workspace.                                   |
| `payload.state`                | `"draft" \| "live"` | No       |         | News items will not be visible to your users in the assigned newsfeeds until they are set live.               |
| `payload.deliver_silently`     | `boolean`           | No       |         | When set to `true`, the news item will appear in the messenger newsfeed without showing a notification badge. |
| `payload.labels`               | `array`             | No       |         | Label names displayed to users to categorize the news item.                                                   |
| `payload.reactions`            | `array`             | No       |         | Ordered list of emoji reactions to the news item. When empty, reactions are disabled.                         |
| `payload.newsfeed_assignments` | `array`             | No       |         | A list of newsfeed\_assignments to assign to the specified newsfeed.                                          |

### Allowed values

| Field           | Allowed values  |
| --------------- | --------------- |
| `payload.state` | `draft`, `live` |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "A News Item is a content type in Intercom enabling you to announce product updates, company news, promotions, events and more with your customers.",
    "properties": {
      "news_item_id": {
        "type": "integer",
        "description": "The unique identifier for the news item which is given by Intercom."
      },
      "title": {
        "type": "string",
        "description": "The title of the news item."
      },
      "body": {
        "type": "string",
        "description": "The news item body, which may contain HTML."
      },
      "sender_id": {
        "type": "integer",
        "description": "The id of the sender of the news item. Must be a teammate on the workspace."
      },
      "state": {
        "type": "string",
        "description": "News items will not be visible to your users in the assigned newsfeeds until they are set live.",
        "enum": [
          "draft",
          "live"
        ]
      },
      "deliver_silently": {
        "type": "boolean",
        "description": "When set to `true`, the news item will appear in the messenger newsfeed without showing a notification badge."
      },
      "labels": {
        "type": "array",
        "description": "Label names displayed to users to categorize the news item.",
        "items": {
          "type": "string"
        }
      },
      "reactions": {
        "type": "array",
        "description": "Ordered list of emoji reactions to the news item. When empty, reactions are disabled.",
        "items": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "newsfeed_assignments": {
        "type": "array",
        "description": "A list of newsfeed_assignments to assign to the specified newsfeed.",
        "items": {
          "type": "object",
          "description": "Assigns a news item to a newsfeed.",
          "properties": {
            "newsfeed_id": {
              "type": "integer",
              "description": "The unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article)."
            },
            "published_at": {
              "type": "integer",
              "description": "Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is \"draft\".",
              "format": "timestamp"
            }
          },
          "additionalProperties": false
        }
      }
    },
    "required": [
      "news_item_id",
      "title",
      "sender_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                                                                                                                        |
| ------------- | -------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `result.data` | `object` | Yes      |         | A News Item is a content type in Intercom enabling you to announce product updates, company news, promotions, events and more with your customers. |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging).                                                                                                     |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "A News Item is a content type in Intercom enabling you to announce product updates, company news, promotions, events and more with your customers.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of object.",
            "enum": [
              "news-item"
            ]
          },
          "id": {
            "type": "string",
            "description": "The unique identifier for the news item which is given by Intercom."
          },
          "workspace_id": {
            "type": "string",
            "description": "The id of the workspace which the news item belongs to."
          },
          "title": {
            "type": "string",
            "description": "The title of the news item."
          },
          "body": {
            "type": "string",
            "description": "The news item body, which may contain HTML."
          },
          "sender_id": {
            "type": "integer",
            "description": "The id of the sender of the news item. Must be a teammate on the workspace."
          },
          "state": {
            "type": "string",
            "description": "News items will not be visible to your users in the assigned newsfeeds until they are set live.",
            "enum": [
              "draft",
              "live"
            ]
          },
          "newsfeed_assignments": {
            "type": "array",
            "description": "A list of newsfeed_assignments to assign to the specified newsfeed.",
            "items": {
              "type": "object",
              "description": "Assigns a news item to a newsfeed.",
              "properties": {
                "newsfeed_id": {
                  "type": "integer",
                  "description": "The unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article)."
                },
                "published_at": {
                  "type": "integer",
                  "description": "Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is \"draft\".",
                  "format": "timestamp"
                }
              },
              "additionalProperties": false
            }
          },
          "labels": {
            "type": "array",
            "description": "Label names displayed to users to categorize the news item.",
            "items": {
              "type": [
                "string",
                "null"
              ],
              "description": "The label name."
            }
          },
          "cover_image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the image used as cover. Must have .jpg or .png extension.",
            "format": "uri"
          },
          "reactions": {
            "type": "array",
            "description": "Ordered list of emoji reactions to the news item. When empty, reactions are disabled.",
            "items": {
              "type": [
                "string",
                "null"
              ],
              "description": "The emoji reaction to the news item."
            }
          },
          "deliver_silently": {
            "type": "boolean",
            "description": "When set to true, the news item will appear in the messenger newsfeed without showing a notification badge."
          },
          "created_at": {
            "type": "integer",
            "description": "Timestamp for when the news item was created.",
            "format": "timestamp"
          },
          "updated_at": {
            "type": "integer",
            "description": "Timestamp for when the news item was last updated.",
            "format": "timestamp"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute intercom_update_news_item --payload '{
  "news_item_id": "integer",
  "title": "string",
  "sender_id": "integer"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
