Update a review task
PATCH
/v1/review-tasks/{reviewTaskId}curl -X PATCH 'https://api.embodiflow.io/v1/review-tasks/{reviewTaskId}' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"status": "pending",
"reviewerProjectMembershipId": "00000000-0000-0000-0000-000000000000",
"dueAt": "string"
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- reviewTaskIdstringrequired
Header parameters
- If-Matchstring
Optional precondition. A matching tag proceeds and returns the new ETag. A stale tag returns 412 PRECONDITION_FAILED with no write. Absent proceeds (opt-in this release). If-Match: * succeeds when the resource exists. Malformed values return 400 IF_MATCH_INVALID.
Request body
Content-Typeapplication/json
- statusstringAllowed valuespendingin_progressapprovedrejected
- reviewerProjectMembershipIdstring (uuid) | null
- dueAtstring | null
Responses
Success
- dataobjectrequired
- idstringrequired
- tenantIdstringrequired
- projectIdstringrequired
- workflowRunIdstringrequired
- subjectTypestringrequired
- subjectRefIdstringrequired
- statusstringrequired
- decisionstring | nullrequired
- reviewerProjectMembershipIdstring | nullrequired
- dueAtstring | nullrequired
- stepKeystringrequired
- taskTitlestringrequired
- overdueone ofrequired
- createdAtstringrequired
- updatedAtstringrequired
Response example
{
"data": {
"id": "string",
"tenantId": "string",
"projectId": "string",
"workflowRunId": "string",
"subjectType": "string",
"subjectRefId": "string",
"status": "string",
"decision": "string",
"reviewerProjectMembershipId": "string",
"dueAt": "string",
"stepKey": "string",
"taskTitle": "string",
"overdue": false,
"createdAt": "string",
"updatedAt": "string"
}
}Servershttps://api.embodiflow.io/v1https://api.embodiflow.dev/v1