Skip to navigation

create threshold

View as Markdown

POST /api/v1/{account_id}/projects/{project_id}/dimension-thresholds

Creates a dimension threshold for a specific project within an account.

Request

  • base_url (string): The base URL of the API.
  • account_id (string): The unique identifier of the account.
  • project_id (string): The unique identifier of the project.

Request Body

  • dimensionId (string): The unique identifier of the dimension (client-generated UUID).
  • name (string): The dimension name.
  • blockThreshold (number): Score threshold for block decision.
  • challengeThreshold (number): Score threshold for challenge decision.

Response

The response for this request is a JSON object with the following schema:

{}

Accepted permissions Project → Risk dimension thresholds → Update

Token scope Dimension Thresholds 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.
dimensionIdstringRequiredformat: "uuid"
namestringRequired
blockThresholddoubleRequired
challengeThresholddoubleRequired