Cancel Robot Task

You can use this method to cancel a robot task for a robot.

The robot adapter calls the robot’s corresponding interface to cancel the open robot task or the robot task that is in process. If there are some reasons in the robot that cause the robot task can't be canceled, the API method returns an error. That is, you can't cancel a completed robot task.

Request

URI: /robots/{robotId}/robotTasks/{robotTaskId}

HTTP Method: DELETE

Request Parameters

Parameter Required Data Type Description
robotId Yes String Robot ID
robotTaskId Yes String Robot task

Response

Code Description
204 The request is processed successfully.
400 The server can't process the request.
404 Robot task doesn't exist.