Skip to content

Activate or deactivate a webhook subscription

PATCH
/api/v1/webhooks/{id}/active
curl --request PATCH \
--url https://api-omni.linra.net/api/v1/webhooks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/active \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "isActive": true }'
id
required
string format: uuid
Media typeapplication/json
object
isActive
required
boolean
Examplegenerated
{
"isActive": true
}

The new status.

Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
id
string format: uuid
isActive
boolean
Example
{
"state": "SUCCESS"
}

Unknown subscription.

Media typeapplication/json

The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).

object
state
required
string
payload
required

Always null on an error response.

object
details
object
Example
{
"state": "NOT_FOUND_ORDER",
"payload": null
}

Too many requests — see the Rate limits guide. Retry after the Retry-After header (seconds).

Media typeapplication/json

The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).

object
state
required
string
payload
required

Always null on an error response.

object
details
object
Example
{
"state": "NOT_FOUND_ORDER",
"payload": null
}
Retry-After
integer

Seconds to wait before retrying.