Decline an agent recommendation
Close the recommendation and decline its help center drafts. The agent does not propose the same change again.
curl -X POST "https://productlane.com/api/v2/agent/recommendations/{id}/decline" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
idstringpathrequired
Body
reasonstring
Response
Successful response
idstringrequiredtypeenum<string>requireddocs: a missing help center article. contradiction: articles that disagree. guidance: a rule for the agent's guidance. connector: data or an action the agent needs from your systems; accepting it files a Linear issue.
One of:docscontradictionguidanceconnectorstatusenum<string>requiredexpired: closed by the agent after its conversations went quiet.
One of:openaccepteddeclinedexpiredtitlestringrequiredsummarystringrequiredconversation_countintegerrequiredimpact_per_monthintegerrequiredConversations per month the agent is expected to resolve once accepted.
thread_idsstring[]requiredexamplesobject[]requiredguidanceobject | nullrequiredThe guidance before and after the change. Set on guidance recommendations.
docs_draft_idsstring[]requiredHelp center drafts this recommendation applies. Read them with GET /docs/drafts/{id}.
connectorobject | nullrequiredWhat the agent needs connected. Set on connector recommendations.
linear_issueobject | nullrequireddecline_reasonstring | nullrequiredcreated_atstringrequiredupdated_atstringrequired
{
"id": "string",
"type": "docs",
"status": "open",
"title": "string",
"summary": "string",
"conversation_count": 0,
"impact_per_month": 0,
"thread_ids": [
"string"
],
"examples": [
{
"thread_id": "string",
"question": "string"
}
],
"guidance": {
"before": "string",
"after": "string"
},
"docs_draft_ids": [
"string"
],
"connector": {
"need": "string",
"suggestion": "string",
"system": "string"
},
"linear_issue": {
"id": "string",
"identifier": "string",
"url": "string"
},
"decline_reason": "string",
"created_at": "string",
"updated_at": "string"
}