Skip to content

Close Task

Request

Closes a task with the specified resolution.
When 'closeAllManualTasks=true' and the task is MANUAL_INVENTORY_REVIEW, all other open MANUAL_INVENTORY_REVIEW tasks for the same inventory are also closed with the same resolution and comment.
Note: Closing with REJECTED automatically propagates the same resolution and comment to all other open Manual Review Tasks for the same inventory, regardless of closeAllManualTasks.

Security
bearerAuth
Path
taskIdinteger, (int64), >= 1required

ID of the task to be closed

Example:1
Query
resolutionstringCLOSED|APPROVED|REJECTEDrequired
Default:"CLOSED"
Enum:"CLOSED""APPROVED""REJECTED"
commentstring

Optional comment (max 1000 characters)

closeAllManualTasksboolean

When true, closes all other open MANUAL_INVENTORY_REVIEW tasks for the same inventory with the same resolution and comment

Default:false
curl -i -X PUT \
  'https://codeinsightapi.redocly.app/_mock/swagger/tasks/1/close?resolution=CLOSED&comment=string&closeAllManualTasks=false' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK