Skip to main content
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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.ensync.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required
The ID of the event definition to update

Body Parameters

name
string
required
Updated event name
payload
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"
}