Description
Sends a notification to DingTalk to request approval by using a webhook URL. The action remains suspended until the request is approved or rejected. For more information, see the document at 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: JsonAttributes
Attribute | Description | Type | Required | Default value | Limit |
webhook | The webhook URL of DingTalk. | String | Yes | ||
msgtype | The message type. | String | No | text | |
text | The content of the message of the text type. This attribute is required if the msgtype attribute is set to text. | Json | No | {'content': 'I am what I am. I am fireworks of a different color.'} | |
link | The content of the message of the link type. This attribute is required if the msgtype attribute 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 content of the message of the Markdown type. This attribute is required if the msgtype attribute 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 who are notified. | Json | No | {'atMobiles': ['150XXXXXXXX'], 'atUserIds': ['user123'], 'isAtAll': False} |
Output
None
References
For more information, see ACS::Approve::DingTalkWebhook at GitHub.