Skip to content

Update a Webhook

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/webhook_endpoints/:id

You can update an existing webhook field using the numeric ID.

  • :space_id required number

    Numeric ID of a space

  • :webhook_endpoint_id required number

    Webhook ID

curl "https://mapi.storyblok.com/v1/spaces/656/webhook_endpoints/4570" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"webhook_endpoint\":{\"actions\":[\"story.published\",\"story.unpublished\"],\"activated\":true,\"endpoint\":\"https://new-api-endpoint.com\",\"name\":\"Rebuild Website\",\"secret\":\"HelloSecret\"}}"