TicketCreate【新建工单】¶
新建工单:指定新建工单的标题和描述,如果不指定工单的标题,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
summary | String | 工单的标题 | Yes |
description | String | 工单的描述 | No |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "TicketCreate",
"summary": "test",
"description": "hello"
}
Example Response:
{
"message": "成功",
"code": 200
}