Skip to documentation

API · Events

Update Event

Update an event’s payload schema by ID or name (requires full access). A null or omitted schema clears the definition’s validation rules.

PATCH/events/{id}Full access

Request parameters

ParameterTypeDescription
id
path · required
stringEvent id or name.
schema
body · required
object | nullUp to 50 unique letter, digit, or underscore keys with string, number, boolean, or date types; keys are trimmed, blank keys discarded, and null or omission clears validation.

Request example

Set OPENSEND_BASE_URL=https://api.example.com and OPENSEND_API_KEY=os_replace_me on your server.

bash
curl -X PATCH "$OPENSEND_BASE_URL/events/YOUR_id" \
  -H "Authorization: Bearer $OPENSEND_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"schema":{"plan":"string"}}'

Response

200 · application/json. Example IDs stand for IDs returned by your installation.

json
{
  "object": "event",
  "id": "YOUR_ID"
}

Behavior and errors

Names beginning with opensend: are reserved. This manages custom event definitions, not webhook subscriptions.

Use a full-access credential. Resource IDs belong to your team; an unknown or foreign resource returns 404. See authentication, errors, rate limits, and compatibility for the shared contract.