Creates a service ticket.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-mss:CreateServiceWorkOrder |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkOrderName |
string |
Yes |
The name of the ticket. |
安全月报交付任务 |
| WorkOrderType |
string |
Yes |
The type of the ticket. Valid values:
|
MONTH_REPORT |
| WorkOrderSource |
string |
Yes |
The source of the ticket. |
工单迁移 |
| WorkOrderStatus |
string |
Yes |
The status of the ticket. Valid values:
|
UNPROCESSED |
| CustomerId |
string |
Yes |
The ID of the customer. |
1477832102462645 |
| StartTime |
integer |
Yes |
The start time. |
1734788109000 |
| Operator |
string |
Yes |
The operator. |
426556 |
| OperateType |
string |
Yes |
The type of the operation. |
CREATE |
| OperateRemark |
string |
Yes |
The remarks for the operation. |
新建 |
| WorkOrderDetail |
string |
Yes |
The details of the ticket. |
{"questionDetail":"测试工单","answerDetail":""} |
| DurationDay |
string |
Yes |
The duration in days. |
5 |
| IsAttachment |
string |
Yes |
The attachment requirement. Valid values:
|
Y |
| IsWorkOrderNotify |
string |
Yes |
Specifies whether a reminder notification is required. Valid values:
|
Y |
| NotifyDay |
string |
No |
The number of days in advance to send a reminder notification. |
5 |
| Creator |
string |
Yes |
The creator of the ticket. |
426556 |
| NotifyId |
integer |
No |
The ID of the notification. |
10 |
| IsMilestone |
string |
No |
Specifies whether this is a milestone. Valid values:
|
Y |
| Priority |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Data |
object |
The data returned by the operation. |
|
| Id |
integer |
The primary key. |
1978941 |
| CreateTime |
integer |
The creation time. |
1734788109000 |
| WorkOrderName |
string |
The name of the ticket. |
安全月报交付任务 |
| WorkOrderType |
string |
The type of the ticket. |
MONTH_REPORT |
| WorkOrderSource |
string |
The source of the ticket. |
工单迁移 |
| CustomerId |
string |
The ID of the customer. |
1477832102462645 |
| StartTime |
integer |
The start time. |
1734788109000 |
| EndTime |
integer |
The end time. |
1734788109000 |
| CompleteTime |
integer |
The completion time. |
1734788109000 |
| WorkOrderStatus |
string |
The status of the ticket. |
UNPROCESSED |
| OwnerId |
string |
The owner. |
426556 |
| WorkOrderDetail |
string |
The details of the ticket. |
{"questionDetail":"测试工单","answerDetail":""} |
| Creator |
string |
The creator of the ticket. |
426556 |
| RequestId |
string |
The request ID. |
7DC44321-7AAE-51CD-8E5F-CEB968569042 |
| Code |
string |
The status code of the operation. |
200 |
| Message |
string |
The message returned for the result. |
successful |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Data": {
"Id": 1978941,
"CreateTime": 1734788109000,
"WorkOrderName": "安全月报交付任务",
"WorkOrderType": "MONTH_REPORT",
"WorkOrderSource": "工单迁移",
"CustomerId": "1477832102462645",
"StartTime": 1734788109000,
"EndTime": 1734788109000,
"CompleteTime": 1734788109000,
"WorkOrderStatus": "UNPROCESSED",
"OwnerId": "426556",
"WorkOrderDetail": "{\"questionDetail\":\"测试工单\",\"answerDetail\":\"\"}\n",
"Creator": "426556"
},
"RequestId": "7DC44321-7AAE-51CD-8E5F-CEB968569042",
"Code": "200",
"Message": "successful",
"HttpStatusCode": 200,
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.