curl -X PUT "https://config.gms.ensync.cloud/v1/event/1" \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "order/created",
"payload": {
"orderId": "string",
"amount": "number",
"customerId": "string",
"items": "array",
"shippingAddress": "object"
}
}'
{
"message": "Event definition updated successfully"
}
Event Definitions
Update Event Definition
Updates an existing event definition
PUT
/
event
/
{id}
curl -X PUT "https://config.gms.ensync.cloud/v1/event/1" \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "order/created",
"payload": {
"orderId": "string",
"amount": "number",
"customerId": "string",
"items": "array",
"shippingAddress": "object"
}
}'
{
"message": "Event definition updated successfully"
}
Path Parameters
string
required
The ID of the event definition to update
Body Parameters
string
required
Updated event name
object
required
Updated event payload schema
curl -X PUT "https://config.gms.ensync.cloud/v1/event/1" \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "order/created",
"payload": {
"orderId": "string",
"amount": "number",
"customerId": "string",
"items": "array",
"shippingAddress": "object"
}
}'
{
"message": "Event definition updated successfully"
}