ask/engine
API Reference

Record an outcome

Mark an accepted recommendation shipped, validated, or stale.

POST/v1/recommendations/{recommendationId}/outcome

Example

curl -X POST "https://example.com/v1/recommendations/string/outcome" \  -H "Authorization: Bearer $ASKENGINE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "outcome": "shipped"  }'

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response

{  "data": {    "recommendationId": "rec_456"  }}