Skip to main content
PATCH
/
projects
/
{project_uid}
/
quality-targets
/
{uid}
CRUD for quality targets scoped to a project.
curl --request PATCH \
  --url https://api.avala.ai/api/v1/projects/{project_uid}/quality-targets/{uid}/ \
  --header 'Content-Type: application/json' \
  --header 'X-Avala-Api-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "metric": "issue_rate",
  "threshold": 123,
  "operator": "gt",
  "severity": "warning",
  "is_active": true,
  "notify_webhook": true,
  "notify_emails": [
    "jsmith@example.com"
  ]
}
'
{
  "name": "<string>",
  "metric": "issue_rate",
  "threshold": 123,
  "operator": "gt",
  "severity": "warning",
  "is_active": true,
  "notify_webhook": true,
  "notify_emails": [
    "jsmith@example.com"
  ]
}

Authorizations

X-Avala-Api-Key
string
header
required

API key for authentication. Generate one in Mission Control Settings > Security & Identity.

Path Parameters

project_uid
string
required
uid
string
required

Body

application/json
name
string
required

Human-readable name, e.g. 'Max rejection rate'.

Required string length: 1 - 255
metric
enum<string>
required
Available options:
issue_rate,
acceptance_rate,
rejection_rate,
mean_resolution_time,
critical_issue_count
threshold
number
required

The threshold value. For rates this is 0-1 (e.g. 0.15 = 15%). For counts this is an integer. For time this is seconds.

operator
enum<string>
Available options:
gt,
lt,
gte,
lte
severity
enum<string>
Available options:
warning,
critical
is_active
boolean
notify_webhook
boolean

Emit a quality.alert webhook event when threshold is breached.

notify_emails
string<email>[]

Email addresses to notify (future use).

Required string length: 1 - 254

Response

200 - application/json
name
string
required

Human-readable name, e.g. 'Max rejection rate'.

Required string length: 1 - 255
metric
enum<string>
required
Available options:
issue_rate,
acceptance_rate,
rejection_rate,
mean_resolution_time,
critical_issue_count
threshold
number
required

The threshold value. For rates this is 0-1 (e.g. 0.15 = 15%). For counts this is an integer. For time this is seconds.

operator
enum<string>
Available options:
gt,
lt,
gte,
lte
severity
enum<string>
Available options:
warning,
critical
is_active
boolean
notify_webhook
boolean

Emit a quality.alert webhook event when threshold is breached.

notify_emails
string<email>[]

Email addresses to notify (future use).

Required string length: 1 - 254