younifyd
Menu

Update Webhook

Update a webhook

PUT/spaces/{spaceId}/webhook_definitions/{webhookId}

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Update Webhook action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{updateWebhook.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

webhookIdstringrequired

ID of the webhook

Headers

X-Contentful-Versioninteger (int64)required

The version of the locale to update.

Request body

Enter the body as JSON in the step's Body field.

headersarray<object>

HTTP headers to send with the webhook request

keystringrequired
valuestringrequired
httpBasicPasswordstring

Password for HTTP basic authentication

httpBasicUsernamestring

Username for HTTP basic authentication

namestringrequired

Name of the webhook

topicsarray<string>required

Events that trigger the webhook

urlstringrequired

URL to call when the webhook is triggered

activeboolean

Whether the webhook is active

filtersarray<object>

Filters to apply to the webhook

json
{
  "name": "string",
  "topics": [
    "string"
  ],
  "url": "string",
  "headers": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "httpBasicPassword": "string",
  "httpBasicUsername": "string",
  "active": false,
  "filters": [
    {}
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateWebhook.response.data.<field>}}.

headersarray<object>

HTTP headers to send with the webhook request

keystringrequired
valuestringrequired
httpBasicPasswordstring

Password for HTTP basic authentication

httpBasicUsernamestring

Username for HTTP basic authentication

namestring

Name of the webhook

sysobject
idstring

Resource ID

archivedAtstring (date-time)

Archival timestamp

contentTypeobject1 fields
createdAtstring (date-time)

Creation timestamp

environmentobject1 fields
publishedAtstring (date-time)

Publication timestamp

spaceobject1 fields
typestring

Resource type

updatedAtstring (date-time)

Last update timestamp

versioninteger (int64)

Resource version

topicsarray<string>

Events that trigger the webhook

urlstring

URL to call when the webhook is triggered

activeboolean

Whether the webhook is active

filtersarray<object>

Filters to apply to the webhook

json
{
  "headers": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "name": "string",
  "topics": [
    "string"
  ],
  "url": "string",
  "httpBasicPassword": "string",
  "httpBasicUsername": "string",
  "sys": {
    "id": "string",
    "archivedAt": "2025-01-01T00:00:00Z",
    "contentType": {
      "sys": {
        "id": "string",
        "linkType": "ContentType",
        "type": "Link"
      }
    },
    "createdAt": "2025-01-01T00:00:00Z",
    "environment": {
      "sys": {
        "id": "string",
        "linkType": "Environment",
        "type": "Link"
      }
    },
    "publishedAt": "2025-01-01T00:00:00Z",
    "space": {
      "sys": {
        "id": "string",
        "linkType": "Environment",
        "type": "Link"
      }
    },
    "type": "string",
    "updatedAt": "2025-01-01T00:00:00Z",
    "version": 0
  },
  "active": false,
  "filters": [
    {}
  ]
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.

Was this page helpful?