Update an existing webhook configuration
PUT/config/:id
Update an existing webhook configuration
Request
Path Parameters
The webhook configuration ID
- application/json
Body
required
- MailConfigDTO
- RestConfigDTO
The unique identifier of the webhook
123e4567-e89b-12d3-a456-426614174000
The name of the webhook configuration
Order Created Webhook
The ID of the owner (organization)
org_12345
List of events the webhook is subscribed to
Possible values: [ORDER_EVENT
, PARCEL_EVENT
, UNKNOWN
]
["ORDER_CREATED","ORDER_SHIPPED"]
dispatchConfig
object
required
oneOf
The type of dispatcher configuration
Possible values: [mailConfig
]
mailConfig
The email address to send notifications to
user@example.com
The type of dispatcher configuration
Possible values: [restConfig
]
restConfig
The REST API endpoint URL
https://api.example.com/webhook
The status of the webhook
Possible values: [ACTIVE
, INACTIVE
]
ACTIVE
Responses
- 200
- 403
- 404
- 500
Webhook configuration updated successfully
- application/json
- Schema
- Example (from schema)
Schema
- MailConfigDTO
- RestConfigDTO
The unique identifier of the webhook
123e4567-e89b-12d3-a456-426614174000
The name of the webhook configuration
Order Created Webhook
The ID of the owner (organization)
org_12345
List of events the webhook is subscribed to
Possible values: [ORDER_EVENT
, PARCEL_EVENT
, UNKNOWN
]
["ORDER_CREATED","ORDER_SHIPPED"]
dispatchConfig
object
required
oneOf
The type of dispatcher configuration
Possible values: [mailConfig
]
mailConfig
The email address to send notifications to
user@example.com
The type of dispatcher configuration
Possible values: [restConfig
]
restConfig
The REST API endpoint URL
https://api.example.com/webhook
The status of the webhook
Possible values: [ACTIVE
, INACTIVE
]
ACTIVE
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Order Created Webhook",
"ownerId": "org_12345",
"subscribedEvents": [
"ORDER_CREATED",
"ORDER_SHIPPED"
],
"dispatchConfig": {},
"status": "ACTIVE"
}
Forbidden, not allowed to edit this resource
Configuration not found
Internal server error