curl --request PATCH \
--url https://api.example.com/billing-thresholds/{billingThresholdId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"value": 123
}
'{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic Updated",
"description": "Basic threshold for small orgs",
"value": 15000,
"currency": "BRL",
"status": "ACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-03-25T14:30:00.000Z"
}
Atualizar nome, descricao ou valor de um limite de faturamento.
curl --request PATCH \
--url https://api.example.com/billing-thresholds/{billingThresholdId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"value": 123
}
'{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic Updated",
"description": "Basic threshold for small orgs",
"value": 15000,
"currency": "BRL",
"status": "ACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-03-25T14:30:00.000Z"
}
billing_threshold:write.{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic Updated",
"description": "Basic threshold for small orgs",
"value": 15000,
"currency": "BRL",
"status": "ACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-03-25T14:30:00.000Z"
}
curl -X PATCH https://api.awsales.io/admin/billing-thresholds/019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Premium Threshold",
"value": 200000
}'
| Status | Codigo | Descricao |
|---|---|---|
400 | validation_error | Entrada invalida ou campos obrigatorios ausentes |
401 | unauthorized | Autenticacao ausente ou invalida |
403 | forbidden | Permissoes insuficientes |
404 | billing_threshold.not_found | Limite de faturamento nao encontrado |
500 | internal_server_error | Ocorreu um erro inesperado |