> ## 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.

# Update Event Definition

> Updates an existing event definition

### Path Parameters

<ParamField path="id" type="string" required>
  The ID of the event definition to update
</ParamField>

### Body Parameters

<ParamField body="name" type="string" required>
  Updated event name
</ParamField>

<ParamField body="payload" type="object" required>
  Updated event payload schema
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  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"
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "message": "Event definition updated successfully"
  }
  ```
</ResponseExample>
