Skip to main content

I am using the following curl -

curl --location 'https://hooks.slack.com/services/XXXXX/YYYYYY/ZZZZZZ' \

--header 'Content-Type: application/json' \

--data '{

  "text": "Hola!",

  "blocks": "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"foo\"}}]",

  "attachments": "[{\"color\":\"#FF0000\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"doo\"}}]}]"

}'

 

This only send the blocks and not the attachments.

1 Antwort
0/9000