Skip to the page

Update event

Changes the types the data of an event has to carry, or clears them.

PATCH/v1/events/{id}
Needs the scopeevents:write

Path parameters

  • idstringRequired

    The id or the name of the event. Up to 120 characters.

Body parameters

  • schemaRecord<string, string> | nullRequired

    The type of each value its data has to carry, by name, or null to take any data.

Returns

  • object"event"

    Always event.

  • idstring

    The id of the event.

  • namestring

    The name of the event, such as order.paid.

  • schemaRecord<string, string> | null

    The type of each value its data has to carry: string, number, boolean or date. null takes any data.

  • receivedinteger

    How many times it has been sent.

  • lastReceivedAtstring | null

    When it was last sent, or null.

  • createdAtstring

    When the event was first defined or sent.