Queries approval templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListWorkFlowTemplates |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the ID of the tenant, log on to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant. |
-1 |
| SearchName |
string |
No |
The name used to search for approval templates. |
Admin |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
41067071-0243-4AAB-B3CF-4DE6D54F53B4 |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| WorkFlowTemplates |
object |
||
| WorkFlowTemplate |
array<object> |
The approval templates. |
|
|
array<object> |
|||
| IsSystem |
integer |
Indicates whether the approval template is predefined by the system. Valid values:
|
1 |
| WorkflowNodes |
object |
||
| WorkflowNode |
array<object> |
The details of approval nodes. |
|
|
object |
|||
| Comment |
string |
The description of the approval node. |
test |
| NodeType |
string |
The type of the approval node. Valid values:
|
SYS |
| NodeName |
string |
The name of the approval node. |
test |
| Position |
integer |
The position of the approval node. |
1 |
| CreateUserId |
integer |
The ID of the creator. |
1234 |
| TemplateId |
integer |
The ID of the template. |
12345 |
| NodeId |
integer |
The ID of the approval node. |
123 |
| Comment |
string |
The description of the approval template. |
test |
| Enabled |
string |
Indicates whether the approval template is enabled. Valid values:
|
Y |
| TemplateName |
string |
The name of the approval template. |
Admin |
| TemplateId |
integer |
The ID of the approval template. |
12345 |
| CreateUserId |
integer |
The ID of the creator. |
1234 |
Examples
Success response
JSON format
{
"RequestId": "41067071-0243-4AAB-B3CF-4DE6D54F53B4",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"WorkFlowTemplates": {
"WorkFlowTemplate": [
{
"IsSystem": 1,
"WorkflowNodes": {
"WorkflowNode": [
{
"Comment": "test",
"NodeType": "SYS",
"NodeName": "test",
"Position": 1,
"CreateUserId": 1234,
"TemplateId": 12345,
"NodeId": 123
}
]
},
"Comment": "test",
"Enabled": "Y",
"TemplateName": "Admin",
"TemplateId": 12345,
"CreateUserId": 1234
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.