Skip to Content
Webhooks

Update a project webhook subscription URL or subscribed events

PATCH
/api/projects/{projectId}/webhooks/{webhookId}

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length
webhookId*string
Length1 <= length

Request Body

  1. body
Properties1 <= properties
url?string

Replacement destination HTTPS URL validated against instance network policy.

Length1 <= length <= 2048
events?array<>

Replacement list of project event types for this subscription.

Items1 <= items

Response Body

Response for status 200

application/json
  1. response
webhook*
Example Request
curl -X PATCH 'https://postdot.example/api/projects/string/webhooks/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "webhook": {
    "id": "string",
    "projectId": "string",
    "url": "string",
    "events": [
      "post.created"
    ],
    "state": "active",
    "pausedReason": "string",
    "cursorSequence": 0,
    "secretVersion": 1,
    "previousSecretExpiresAt": 0,
    "createdByActorId": "string",
    "updatedByActorId": "string",
    "createdAt": 0,
    "updatedAt": 0
  }
}

Was this page helpful?