Create a message (card attachment )
POST {{WEBEXAPI}}/messages
Post a plain text or rich text message, and optionally, a file attachment attachment, to a room.
The files parameter is an array, which accepts multiple values to allow for future expansion, but currently only one file may be included with the message.
https://developer.webex.com/docs/api/v1/messages/create-a-message
Request Body
{"roomId"=>"{{_room}}", "markdown"=>"[Learn more](https://adaptivecards.io) about Adaptive Cards.", "attachments"=>[{"contentType"=>"application/vnd.microsoft.card.adaptive", "content"=>{"type"=>"AdaptiveCard", "version"=>"1.0", "backgroundImage"=>"http://messagecardplayground.azurewebsites.net/assets/Mostly%20Cloudy-Background-Dark.jpg", "body"=>[{"type"=>"TextBlock", "text"=>"Adaptive Cards", "size"=>"large"}], "actions"=>[{"type"=>"Action.OpenUrl", "url"=>"http://adaptivecards.io", "title"=>"Learn More"}]}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |