Update webhook subscription
PATCH/v2-experimental/webhooks/board_subscriptions/:subscription_id
Updates the status or the callback URL of an existing webhook subscription.
Required scope
boards:readRate limiting
Level 2Request
Path Parameters
- application/json
Body
required
Possible values: >= 8 characters
and <= 256 characters
, Value must match regular expression ^https:\/\/(.*)
Indicates the HTTPS URL to which Miro sends a webhook when an event occurs.
Possible values: [enabled
, disabled
]
Default value: enabled
Indicates whether the status of the webhook subscription. enabled
: Miro sends a webhook when an event occurs in the associated board.
disabled
: Miro does not send a webhook even when an event occurs in the associated board.
lost_access
: The user with which the webhook subscription is associated has lost access to the board.
The user needs to regain access to the board, and then reenable the webhook subscription by updating the webhook subscription status to enabled
by using the update webhook endpoint.
Responses
- 200
- 400
- 404
- 429
Subscription updated
- application/json
- Schema
- Example (from schema)
Schema
Indicates the HTTPS URL to which Miro sends a webhook when an event occurs.
Date and time when the webhook subscription was created.
Format: UTC, adheres to ISO 8601, includes a trailing Z offset.
data
object
Contains information about a webhook subscription, such as the board ID associated with the webhook subscription, the date and time when the webhook subscription was last updated, and the type of board item that the subscription is associated with.
Unique identifier (ID) of the board with which the webhook subscription is associated.
Unique identifier (ID) of a webhook subscription.
Date and time when the webhook subscription was last modified.
Format: UTC, adheres to ISO 8601, includes a trailing Z offset.
Possible values: [enabled
, disabled
, lost_access
]
Default value: enabled
Indicates whether the status of the webhook subscription. enabled
: Miro sends a webhook when an event occurs in the associated board.
disabled
: Miro does not send a webhook even when an event occurs in the associated board.
lost_access
: The user with which the webhook subscription is associated has lost access to the board.
The user needs to regain access to the board, and then reenable the webhook subscription by updating the webhook subscription status to enabled
by using the update webhook endpoint.
The type of object associated with the webhook subscription.
{
"callbackUrl": "https://api.asana.com/v2/webhooks_endpoint",
"createdAt": "2022-03-30T17:26:50.000Z",
"data": {
"boardId": "uXjVOfjmfkE="
},
"id": "99c152bb-8259-4c7a-96d8-ad8eef47ecd4",
"modifiedAt": "2022-03-30T17:26:50.000Z",
"status": "enabled",
"type": "board_subscription"
}
Malformed request
- application/json
- Schema
- Example (from schema)
Schema
Code of the error
Description of the error
Status code of the error
Type of the error
{
"code": "error",
"message": "Error message",
"status": 400,
"type": "error"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
Code of the error
Description of the error
Status code of the error
Type of the error
{
"code": "error",
"message": "Error message",
"status": 400,
"type": "error"
}
Too many requests
- application/json
- Schema
- Example (from schema)
Schema
Code of the error
Description of the error
Status code of the error
Type of the error
{
"code": "error",
"message": "Error message",
"status": 400,
"type": "error"
}