Skip to main content
POST
Give a webhook endpoint a new public URL, with an overlap

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

pid
string
required

Project id (UUID) belonging to the caller workspace.

id
string
required

Webhook id.

Body

application/json
overlap_hours
number
default:24

How long the OLD credential keeps working, in hours (at most 30 days). 0 ends it at once.

Required range: 0 <= x <= 720

Response

Rotated. public_url is the new URL; previous_public_url and previous_url_expires_at are null when overlap_hours was 0.

id
string
required

The same webhook id as before.

webhook_slug
string
required

The new credential. Never log it.

public_path
string
required
public_url
string<uri>
required
previous_public_url
string<uri> | null
required
previous_url_expires_at
string<date-time> | null
required