Event Schemas
Update an event schema
Changed onUpdate an event schema and add new attributes and dimensions
Once an event schema is activated, you cannot update or delete existing attributes and dimensions however you can add new attributes and dimensions and update event schema description. operationId: updateEventSchema
patch/event_schema/{event_schema_name}
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
event_schema_namestring required
Example:rides
Request body
Example request
{
"attributes": [
{
"name": "distance",
"defaultUnit": "kms"
}
],
"dimensions": [
{
"name": "city"
}
]
}Response
Response for Create and Get event schema requests
Example response
{
"version": 1,
"status": "DRAFT",
"attributes": [
{
"name": "distance",
"defaultUnit": "kms"
}
],
"dimensions": [
{
"name": "city"
}
]
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info