Creating a Case (Old Edition)
Function
This API is used to create a case on the old UI.
URI
POST /v1/{project_id}/task-cases
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. Minimum: 0 Maximum: 64 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Name. Minimum: 1 Maximum: 42 |
type |
Yes |
Integer |
Type (0: common case; 1: video stream case; 2: preset case). Minimum: 0 Maximum: 2 |
task_id |
Yes |
Integer |
Task ID. Minimum: 0 Maximum: 2147483647 |
Response Parameters
Status code: 201
Parameter |
Type |
Description |
---|---|---|
code |
String |
Response code. Minimum: 0 Maximum: 1024 |
json |
CreateCaseResultJson object |
json |
message |
String |
Response message. Minimum: 0 Maximum: 1024 |
Example Requests
Creating a case named case1. The ID of the task to which the case belongs is 1.
/v1/projectId/task-cases { "name" : "case1", "type" : 0, "task_id" : 1 }
Example Responses
Status code: 201
success
{ "code" : "SVCSTG.CPTS.0000000", "json" : { "task_case_id" : 213142 }, "message" : "success" }
Status code: 501
unknown error
""
Status Codes
Status Code |
Description |
---|---|
201 |
success |
501 |
unknown error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot