Skip to main content
POST
Assign resource to webhook

Authorizations

x-api-key
string
header
required

API key for authentication.

Path Parameters

webhook_id
string<uuid>
required

Unique webhook identifier.

Body

application/json
resource_type
enum<string>
required

Type of resource to assign.

Available options:
job,
monitor,
monitor_group
resource_id
string<uuid>
required

ID of the resource to assign.

Example:

"3fec5b07-8786-46d7-9486-d43ff67eccd4"

Response

Resource assigned to webhook.

success
boolean
required

True if the operation succeeded; false otherwise.

Example:

true

message
string

Human-readable result message.

Example:

"Resource assigned to webhook."

already_existed
boolean
default:false

True if the assignment already existed before this request.

Example:

false

mapping
object

The created or existing resource mapping.