Getting Started
In Depth Guides
Useful Info
Shipments
Tracking Requests
Webhooks
Webhook Notifications
Containers
Shipping Lines
Terminals
Webhooks
Edit a webhook
Update a single webhook
PATCH
/
webhooks
/
{id}
curl --request PATCH \
--url https://api.terminal49.com/v2/webhooks/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"attributes": {
"url": "https://webhook.site/#!/39084fbb-d887-42e8-be08-b9183ad02362",
"events": [
"container.transport.vessel_arrived"
],
"active": true,
"headers": [
{
"name": "<string>",
"value": "<string>"
}
]
},
"type": "webhook"
}
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "webhook",
"attributes": {
"url": "<string>",
"active": true,
"events": [
"container.transport.vessel_arrived"
],
"secret": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
}
]
}
}
}
Authorizations
Token YOUR_API_TOKEN
The APIs require authentication to be done using header-based API Key and Secret Authentication.
API key and secret are sent va the Authorization
request header.
You send your API key and secret in the following way:
Authorization: Token YOUR_API_KEY
Path Parameters
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
curl --request PATCH \
--url https://api.terminal49.com/v2/webhooks/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"attributes": {
"url": "https://webhook.site/#!/39084fbb-d887-42e8-be08-b9183ad02362",
"events": [
"container.transport.vessel_arrived"
],
"active": true,
"headers": [
{
"name": "<string>",
"value": "<string>"
}
]
},
"type": "webhook"
}
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "webhook",
"attributes": {
"url": "<string>",
"active": true,
"events": [
"container.transport.vessel_arrived"
],
"secret": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
}
]
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.