Skip to main content
PATCH
/
webhooks
/
{id}
Update webhook
curl --request PATCH \
  --url https://app.tryordinal.com/api/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "CRM Sync (Updated)",
  "url": "https://example.com/webhooks/ordinal-v2",
  "topics": [
    "post.published",
    "post.archived",
    "post.content.edited"
  ]
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440900",
  "name": "CRM Sync (Updated)",
  "url": "https://example.com/webhooks/ordinal-v2",
  "description": "Sync published posts to our CRM",
  "headers": {
    "X-Custom-Header": "value"
  },
  "topics": [
    "post.published",
    "post.archived",
    "post.content.edited"
  ],
  "createdAt": "2026-01-15T10:00:00.000Z",
  "createdBy": {
    "id": "550e8400-e29b-41d4-a716-446655440010",
    "email": "john@acme.com",
    "firstName": "John",
    "lastName": "Doe"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Generate an API key from your workspace settings.

Path Parameters

id
string<uuid>
required

The unique identifier of the webhook to update

Body

application/json
name
string

The name of the webhook

Minimum string length: 1
url
string<uri>

The URL that will receive webhook events

description
string

An optional description for the webhook

topics
enum<string>[]

The event types this webhook should listen to

Minimum array length: 1
Available options:
social_profile.connected,
social_profile.disconnected,
social_profile.reconnect_needed,
post.created,
post.scheduled,
post.rescheduled,
post.unscheduled,
post.published,
post.publish_failed,
post.archived,
post.permanently_deleted,
post.content.edited,
post.comment.created,
post.inline_comment.created
headers
object

Optional custom headers to include in webhook requests

Response

Webhook updated

A webhook configuration for receiving event notifications

id
string<uuid>
name
string
url
string<uri>
description
string | null
headers
object
topics
string[]
createdAt
string<date-time>
createdBy
object

User who created the webhook