Skip to content

Set or clear the URL that run events are POSTed to

PUT
/v1/settings/webhook
curl --request PUT \
--url https://api.supposing.app/v1/settings/webhook \
--header 'Content-Type: application/json' \
--data '{ "url": "example" }'
Media typeapplication/json
WebhookIn
object
url
Url

An https URL to POST run events to, or null to turn webhooks off.

Any of:
string
<= 2000 characters

Example generated

{
"url": "example"
}

Successful Response

Media typeapplication/json
WebhookSecret
object
url
required
Url
Any of:
string
secret
required
Secret

Signs every payload (Supposing-Signature header). Shown once; setting the URL again makes a new one.

Any of:
string

Example generated

{
"url": "example",
"secret": "example"
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}