APIIssues
Update issue
Update an issue, synced to Linear. Linear sync failures are logged but do not block the local update. Requires the issues:write scope.
PATCH
/issues/{id}curl -X PATCH "https://productlane.com/api/v2/issues/{id}" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"description": "string",
"state_id": "string",
"priority": 0,
"project_id": "string",
"assignee_id": "string",
"is_visible": true,
"portal_instance_ids": [
"string"
]
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
idstringpathrequired
Body
application/json
titlestringdescriptionstringAppended to the issue description; the existing description is never overwritten.
state_idstringLinear workflow state id.
priorityany ofLinear issue priority. 0 = No priority, 1 = Urgent, 2 = High, 3 = Normal, 4 = Low.
project_idstring | nullLinear project id. Pass
nullto detach.assignee_idstring | nullLinear user id. Pass
nullto unassign.is_visiblebooleanWhether the issue is shown on the customer portal.
portal_instance_idsstring[]Every portal the item is on, from GET /portal/instances. Use "__main__" for the Main portal. Replaces the current list. The item shows on these portals only while
is_visibleis true.
Response
application/json
Successful response
idstringrequiredidentifierstringrequiredtitlestringrequireddescriptionstring | nullrequiredprioritystringrequiredstatusstringrequiredlinear_team_idstringrequiredurlstringrequiredproject_idstring | nullrequiredsort_ordernumberrequiredtotal_scorenumberrequiredis_visibleboolean | nullrequiredportal_instance_idsstring[]requiredcreated_atstringrequiredupdated_atstringrequiredlinear_ticket_idstringrequired
{
"id": "string",
"identifier": "string",
"title": "string",
"description": "string",
"priority": "string",
"status": "string",
"linear_team_id": "string",
"url": "string",
"project_id": "string",
"sort_order": 0,
"total_score": 0,
"is_visible": true,
"portal_instance_ids": [
"string"
],
"created_at": "string",
"updated_at": "string",
"linear_ticket_id": "string"
}