Skip to Content
Hooks

Update an existing hook

PUT
/hooks/{hook_type}/{hook_id}

Path Parameters

hook_id*string

The ID of the hook.

hook_type*string

The type of the hook.

Value in"incoming""outgoing"

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
id*string

The unique ID of the given Hook. Must be a valid UUID.

name*string

The name of the outgoing hook. Must not be greater than 60 characters.

active?boolean

Determines if the hook is currently active.

requires_secret?boolean

Tells 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?string

The 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?string

The 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?string

The 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?boolean

Whether 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?|

Response Body

No Content

Example Request
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"}'
Example Response
Empty