Feature
Create a Feature and optionally associate with one or more event_schemas
Create a Feature optionally associate with one or more event_schemas
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
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
name
string
requiredName of the feature
billableName
string
Billable name of feature. Billable name takes precedence over name to display in invoice.
schemaAssociations
object[]
requiredAssociation of a feature with event_schemas
Response
200 - application/json
id
string
requiredname
string
requiredbillableName
string
schemaAssociations
object[]
requiredAssociation of a feature with event_schemas
createdAt
string
requiredupdatedAt
string
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"
}