Rate an incident AI result
Records a helpful or not-helpful rating for a summary or postmortem and returns the rated artifact.
PUT https://app.upfour.io/v1/incidents/{incidentID}/ai/{kind}/rating
Parameters
| Field | Type | Description |
|---|---|---|
incidentID required | uuid | path parameter |
kind required | string one ofsummarypostmortem | path parameter · The AI text that is rated. |
Body
ratingintegerrequired
1 (helpful) or -1 (not helpful).
Returns
A successful request returns 200 with application/json.
Response fields 1 top-level fields
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | IncidentAIArtifact | ||||||||||||||||||||||||||||||||||||||||||||||||||||
IncidentAIArtifact · 16 fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
Errors
Only the errors this operation can return. Every error uses the same envelope.
| Status | Code | Meaning |
|---|---|---|
| 402 | ai_billing_blocked | AI features are switched off because the Company has no active credit. When: An AI summary or postmortem request while the Company has no active credit. Fix: Top up the credit, then retry. |
| 422 | ai_budget_above_platform_limit | The monthly AI budget is above the platform limit. When: Saving an AI budget larger than the platform allows; details.limit gives the maximum. Fix: Set a budget at or below details.limit. |
| 422 | ai_call_cap_above_platform_limit | The monthly AI call cap is above the platform limit. When: Saving an AI call cap larger than the platform allows; details.limit gives the maximum. Fix: Set a cap at or below details.limit. |
| 400 | bad_request | The request is malformed or fails validation. |
| 409 | conflict | The request conflicts with the current state. |
| 404 | not_found | The requested resource does not exist or is outside the caller's scope. |
| 403 | permission_denied | The credentials do not permit this action. |
| 503 | service_unavailable | The service or a required dependency is temporarily unavailable. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.