Event Schemas
Get an event schema
Changed onGet an event schema
get/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
Query parameters
versioninteger
Example:2
Optional version to get a specific version. Gets latest version if it is not provided.
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 optional property
to the response with the status
- info
- info
added the optional property
to the response with the status
- info