POST
/
event_schema
/
{event_schema_name}
/
deactivate
curl --request POST \
  --url https://api.togai.com/event_schema/{event_schema_name}/deactivate \
  --header 'Authorization: Bearer <token>'
{
  "name": "ride_completed",
  "description": "Cab ride completed",
  "version": 1,
  "attributes": [
    {
      "name": "distance"
    },
    {
      "name": "time"
    }
  ],
  "dimensions": [
    {
      "name": "city"
    },
    {
      "name": "ride_type"
    }
  ],
  "featureDetails": {
    "featureId": "feature.1122.ahoiud",
    "attributeName": "distance"
  },
  "eventLevelRevenue": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

event_schema_name
string
required
Maximum length: 50
Example:

"rides"

Response

200
application/json

Response for Create and Get event schema requests

Structure of an event schema