create

View as Markdown

Create a new metric rule.

Accepted permissions Project → Risk metric rule definitions → Create

Token scope Rule 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_idstringRequired
project_idstringRequired

Request

This endpoint expects an object.
namestringRequired
dimensionIdstringRequiredformat: "uuid"
scoredoubleRequired
conditionslist of objectsRequired
enabledbooleanOptional