Update an existing hook
hook_id*stringThe ID of the hook.
hook_type*stringThe type of the hook.
"incoming""outgoing"Accept*stringapplication/json
Content-Type*stringapplication/json
A JSON object containing the resource data
application/json- body
id*stringThe unique ID of the given Hook. Must be a valid UUID.
name*stringThe name of the outgoing hook. Must not be greater than 60 characters.
active?booleanDetermines if the hook is currently active.
requires_secret?booleanTells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code (HMAC) generated based on the secret provided by Devopness and shared by user with external sources.
secret_algorithm?stringThe cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation. This field is required when requires_secret is true. Must not be greater than 20 characters.
secret_header_name?stringThe name of the HTTP request header from which the request digital signature should be extracted. This field is required when requires_secret is true. Must not be greater than 64 characters.
secret?stringThe signing secret used by incoming hooks. Provide a value here to replace the existing secret without changing the hook identity. Must not be greater than 255 characters.
secret_signature_has_algorithm_prefix?booleanWhether the signature header value includes the algorithm prefix, for example sha256=<hex>. When false, the header must contain only the raw hex HMAC. This field is required when requires_secret is true.
trigger_when?settings?|No Content
curl -X PUT 'https://api.devopness.com/hooks/incoming/2ab973e1-9528-4d67-aff0-209d74975830' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ -d '{ "id": 1, "name": "lets-go-fishing"}'