Description
Sends an approval request to DingTalk by using a webhook URL. The action stays suspended until the request is approved or rejected. For more information, see https://open.dingtalk.com/document/isvapp/message-type.
Syntax
Action: ACS::Approve::DingTalkWebhook
Properties:
webhook: String
msgtype: String
text: Json
link: Json
markdown: Json
at: Json
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
webhook |
The DingTalk webhook URL. |
String |
Yes |
||
|
msgtype |
The message type. |
String |
No |
text |
|
|
text |
The text message content. Required if msgtype is set to text. |
Json |
No |
{'content': 'I am what I am. I am fireworks of a different color.'} |
|
|
link |
The link message content. Required if msgtype is set to link. |
Json |
No |
{'text': 'This is a link message.', 'title': 'This is a link message.', 'picUrl': 'https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png ', 'messageUrl': 'https://open.dingtalk.com/document/ '} |
|
|
markdown |
The Markdown message content. Required if msgtype is set to markdown. |
Json |
No |
{'title': 'Hangzhou weather', 'text': '#### Hangzhou weather\n> 9 degrees Celsius. Northwest wind: level 1. Air quality index (AQI): 89. Relative humidity (RH): 73%.\n> ###### Released at 10:20.\n'} \n'} |
|
|
at |
The users to notify. |
Json |
No |
{'atMobiles': ['150XXXXXXXX'], 'atUserIds': ['user123'], 'isAtAll': False} |
Output
None
References
For more information, see ACS::Approve::DingTalkWebhook on GitHub.