POST
/
features
curl --request POST \
  --url https://api.togai.com/features \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "DiscountCredits",
  "description": "Discount Credits feature",
  "schemaAssocitions": [
    "event_schema1",
    "event_schema2"
  ]
}'
{
  "id": "feature.1zYnCiM9Bpg.lv25y",
  "name": "DiscountCredits",
  "description": "Discount Credits Feature",
  "schemaAssociations": [
    "event_schema1",
    "event_schema2"
  ],
  "createdAt": "2020-01-01T00:00:00Z",
  "updatedAt": "2020-01-01T00:00:00Z"
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
name
string
required

Name of the feature

billableName
string

Billable name of feature. Billable name takes precedence over name to display in invoice.

schemaAssociations
object[]
required

Association of a feature with event_schemas

Response

200 - application/json
id
string
required
name
string
required
billableName
string
schemaAssociations
object[]
required

Association of a feature with event_schemas

createdAt
string
required
updatedAt
string