---
title: "Create or Update Webhook Configuration"
description: "Create or update your webhook configuration to use the webhook feature"
canonical: "https://docs.cm.com/mobile-marketing-cloud/email-campaigns/webhooks/create-update-webhook-configuration"
---

# Create or Update Webhook Configuration

> Create or update your webhook configuration to use the webhook feature

Source: https://docs.cm.com/mobile-marketing-cloud/email-campaigns/webhooks/create-update-webhook-configuration

# Create/update webhook configuration

Create or update your webhook configuration to use the webhook feature

```http
PUT https://api.cmtelecom.com/bulkemail/v1.0/accounts/{accountID}/webhooks
```

## PUT Parameters

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>In</th>
      <th>Description</th>
      <th>Required</th>
      <th>Type</th>
      <th>Example</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>AccountID</td>
      <td>Path</td>
      <td>The account guid</td>
      <td>True</td>
      <td>Guid</td>
      <td>A8C062E4-ECFD-48D0-89B1-A37D2622B7A9</td>
    </tr>

    <tr>
      <td>Body</td>
      <td>Body</td>
      <td>The new webhook configuration</td>
      <td>True</td>
      <td>Json object</td>
      <td>See example request</td>
    </tr>

    <tr>
      <td>X-CM-PRODUCTTOKEN</td>
      <td>Header</td>
      <td>Your product token</td>
      <td>True</td>
      <td>Guid</td>
      <td>C24A5029-37DD-4161-9728-F80D8639588E</td>
    </tr>
  </tbody>
</table>

```json title="Example request"
{
    "Url": "https://cm.com",
    "Settings": {
        "Sent": true,
        "Unsubscribe": true,
        "Delivered": true,
        "Complaint": true,
        "Bounced": true,
        "Blacklisted": true,
        "Opened": true,
        "ViewedInBrowser": true,
        "Clicked": true,
        "PermanentBounced": true
    }
}
```

## Responses

<table>
  <thead>
    <tr>
      <th>Http status</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>200</td>
      <td>Webhook configured</td>
    </tr>

    <tr>
      <td>400</td>
      <td>Bad request</td>
    </tr>
  </tbody>
</table>

```json title="Example response"
{
    "AccountID": "a8c062e4-ecfd-48d0-89b1-a37d2622b7a9",
    "Url": "https://cm.com",
    "Settings": {
        "Sent": true,
        "Unsubscribe": true,
        "Delivered": true,
        "Complaint": true,
        "Bounced": true,
        "Blacklisted": true,
        "Opened": true,
        "ViewedInBrowser": true,
        "Clicked": true,
        "PermanentBounced": true
    },
    "CreatedOn": "2019-02-01T14:07:15.423",
    "CreatedOnUtc": "2019-02-01T13:07:15.423Z",
    "ModifiedOn": "2019-02-01T14:07:15.423",
    "ModifiedOnUtc": "2019-02-01T13:07:15.423Z",
    "DeletedOn": null,
    "DeletedOnUtc": null
}
```
