Skip to main content
PUT
Update Hook

Authorizations

Authorization
string
header
required

Enter your API key as the username. Leave the password field blank. Example: curl -u YOUR_API_KEY: https://api.xplenty.com/...

Headers

Accept
string
default:application/vnd.xplenty+json; version=2
required

API version header — required on all requests

Path Parameters

hook_id
integer
required

Body

application/json
name
string
active
boolean
settings
object
events
string[]
filter_package_ids
integer[]

Replaces the package filter for this hook. Omit to leave the package filter unchanged. Send an empty array to clear it.

filter_workspace_ids
integer[]

Replaces the package group filter for this hook. Omit to leave the package group filter unchanged. Send an empty array to clear it.

Response

200 - application/vnd.xplenty+json; version=2

Hook updated

id
integer
type
string
name
string
active
boolean
settings
object
events
string[]
filters
object

Active scope for this hook. When both ID arrays are empty, the hook fires for every event in the account.

salt
string
created_at
string<date-time>
updated_at
string<date-time>
url
string<uri>