Update event
Changes the types the data of an event has to carry, or clears them.
View as
PATCH
/v1/events/{id}Needs the scopeevents:write
Path parameters
idstringRequiredThe id or the name of the event. Up to 120 characters.
Body parameters
schemaRecord<string, string> | nullRequiredThe type of each value its data has to carry, by name, or
nullto take any data.
Returns
object"event"Always
event.idstringThe id of the event.
namestringThe name of the event, such as
order.paid.schemaRecord<string, string> | nullThe type of each value its data has to carry:
string,number,booleanordate.nulltakes any data.receivedintegerHow many times it has been sent.
lastReceivedAtstring | nullWhen it was last sent, or
null.createdAtstringWhen the event was first defined or sent.