ask/engine
API Reference

Decide on a recommendation

Accept or dismiss a recommendation, optionally with a note.

POST/v1/recommendations/{recommendationId}/decision

Example

curl -X POST "https://example.com/v1/recommendations/string/decision" \  -H "Authorization: Bearer $ASKENGINE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "decision": "accepted",    "note": "Scheduled for next sprint."  }'

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response

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