Webhooks
Create or change a webhook endpoint.
Create or change a webhook endpoint. On a create, p_url is required and the response carries the signing secret — the only time it can be read. On an edit, p_url NULL keeps the stored address and
p_events NULL keeps the subscriptions. p_header_value NULL keeps the stored credential, an empty
string removes it, anything else replaces it. The address must be https unless p_allow_http is true.
p_body_template replaces the standard body with your own, as a JSON template over the event's
placeholders ({{ asset.number }}, $each over transfers); an empty object removes it.
p_basic_username and p_basic_password are sent as HTTP Basic authentication; the password takes
p_header_value's meanings. p_extra_headers is a list of {"name", "value"} sent with every call; an
empty list removes them. p_send_when is a condition, in the language workflow conditions use, asked of
each moved asset as it stands after the move: only the assets that meet it are sent, and a move none
of whose assets meet it is not sent at all; an empty object removes it. NULL keeps each stored
value. Requires admin.integration.admin.

