create
Create a new metric definition.
Accepted permissions
Project → Risk metric definitions → CreateToken scope
Metric Definitions Action
Authentication
X-Api-Keystring
Personal access token. Create it in your BotBye account under **Profile → Personal Access Tokens**, tick the scopes the endpoints you call require (see each endpoint's **Token scope**), and send the token in the `X-Api-Key` request header. A token works only for the account it was created in.
Path parameters
account_id
project_id
Request
This endpoint expects an object.
name
aggregation
Allowed values:
timeWindow
Time window in seconds.
keyBy
Allowed values:
field
filter
enabled

