cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
417
Views
5
Helpful
1
Replies

Cannot control the placement of content sent through message API.

khanali198361
Level 1
Level 1

Hi developers,
I'm sending some data to my room through webex message API but the problem is that I can't control the placement of content. For example I want the markdown to appear above the file attachment I sent through  https://developer.webex.com/docs/api/v1/messages/create-a-message but I'm not finding a way how to do that. Kindly tell me how I can control the placement of markdown and files in a message. 

JSON: 

 

{
  "roomId": "room_id",
  "text": "Hello",
  "markdown": "\"🟢 **INFO - Create to pod nginx**\n\\n[ Investigate](https://platform.robusta.dev/graphs) \\n\\n\"",
  "files": [
    "https://files.slack.com/files-pri/T03NCJTRLU8-F03QM50DUSJ/cpu_usage_for_this_pod.png"
  ]
}

 

khanali198361_0-1663932953611.png

 

1 Reply 1

Jeff Marshall
Cisco Employee
Cisco Employee

This is not possible. The attachments will always be displayed above the text. If you'd like you can submit a feature request for some way to control this to be added, which would have to be supported by the Webex App before the API could support it, via https://ciscocollabcustomer.ideas.aha.io.

A possible work around would be to send two different messages, first message with your markdown and second message with your attachment.