Pular para o conteúdo

POST /v1/ai-goals/{id}/raise-limit

POST
/v1/ai-goals/{id}/raise-limit
curl --request POST \
--url https://seu-endereco-da-api/v1/ai-goals/example/raise-limit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "maxDiscountPct": 1, "maxChargeCents": 1 }'

Permissão que a Chave de acesso precisa: Pode passar conversa para a IA (ai-goals:start).

id
required
string
Media typeapplication/json
object
maxDiscountPct
number
<= 100
maxChargeCents
number
<= 2147483647

Example generated

{
"maxDiscountPct": 1,
"maxChargeCents": 1
}

The same goal back with the AI under the new limit

Ai_credits_exhausted

Ai_goal_over_role_ceiling

Ai_goal_not_raisable or ai_goal_active