Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Your factory's Worklayer API key (wrk-...). See Get an API key and Authentication. Requests sent from the playground execute live against your factory.

Path Parameters

id
string
required

Subscription ID.

Body

application/json

Send at least one field. events replaces the full list.

name
string
Required string length: 1 - 255
url
string<uri>

A public https:// URL, at most 2,048 characters. It must not have a user name, a password or a fragment (#). It must not be localhost, a .localhost host, or a private or reserved IP address.

Maximum string length: 2048
events
enum<string>[]
Required array length: 1 - 6 elements

An event type that the subscription receives.

Available options:
room.response,
reviews.approvals.created,
reviews.questions.created,
reviews.connect_apps.created,
room.status,
worker.status

Response

The changed subscription.

id
string
required

Subscription ID.

name
string
required

The display name.

url
string<uri>
required

The HTTPS URL that receives the webhooks.

events
enum<string>[]
required

The event types that the subscription receives.

An event type that the subscription receives.

Available options:
room.response,
reviews.approvals.created,
reviews.questions.created,
reviews.connect_apps.created,
room.status,
worker.status
enabled
boolean
required

False when a person turned the subscription off in the web app. The API cannot change it.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required