POST
/
events
/
webhooks
/
{webhook_id}
/
headers
curl --request POST \
  --url https://sandbox-api.violet.io/v1/events/webhooks/{webhook_id}/headers \
  --header 'Content-Type: application/json' \
  --data '{
  "app_id": 123,
  "webhook_id": 123,
  "key": "<string>",
  "value": "<string>"
}'
{
  "id": 123,
  "app_id": 123,
  "webhook_id": 123,
  "key": "<string>",
  "value": "<string>",
  "date_created": "2023-11-07T05:31:56Z",
  "date_last_modified": "2023-11-07T05:31:56Z"
}

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

webhook_id
integer
required

Body

application/json
app_id
integer

App ID

webhook_id
integer

ID of the webhook the header belongs to

key
string

Header Key

value
string

Header Value

Response

default - application/json
id
integer
app_id
integer

App ID

webhook_id
integer

ID of the webhook the header belongs to

key
string

Header Key

value
string

Header Value

date_created
string

Date of creation

date_last_modified
string

Date of last update