Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
7.7 KiB
Deleting a Service Task
Function
This API is used to delete a service task.
URI
DELETE /v1/{project_id}/services/{service_id}/tasks/{task_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
service_id |
Yes |
String |
Service ID |
task_id |
Yes |
String |
ID of a specified service task |
Request Parameters
None
Response Parameters
Status code: 400
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Internal service error code |
error_msg |
String |
Error message |
Status code: 404
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Internal service error code |
error_msg |
String |
Error message |
Example Requests
Delete a specified service task.
/v1/b722xxxxxxxxxxxxxxxxxxxxxxeb4674/services/88bbxxxx-xxxx-xxxx-xxxx-xxxxxxxxbcfe/tasks/53e4xxxxxxxxxxxxxxxxxxxxxxb55b3e
Example Responses
Status code: 400
The request is invalid.
{
"error_code" : "ModelArts.0101",
"error_msg" : "Invalid argument. parameter [task_id] does not match ^[0-9a-f]{32}$."
}
Status code: 404
The specified service does not exist.
{
"error_code" : "ModelArts.3502",
"error_msg" : "Service 2a2db77f-xxxx-xxxx-xxxx-608a31865313 does not exist."
}
Status Codes
Status Code |
Description |
|---|---|
202 |
The request for deleting a service task has been accepted. |
400 |
The request is invalid. |
404 |
The specified service does not exist. |
Error Codes
See Error Codes.