/views.publish
GET
/views.publish
views
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://slack.com/api/views.publish?user_id=&view=' \
--header 'token;'
Response Response Example
200 - response
{
"ok": true,
"view": {
"app_id": "AA4928AQ",
"blocks": [
{
"block_id": "2WGp9",
"text": {
"text": "A simple section with some sample sentence.",
"type": "mrkdwn",
"verbatim": false
},
"type": "section"
}
],
"bot_id": "BA13894H",
"callback_id": "identify_your_home_tab",
"clear_on_close": false,
"close": null,
"external_id": "",
"hash": "156772938.1827394",
"id": "VMHU10V25",
"notify_on_close": false,
"previous_view_id": null,
"private_metadata": "Shh it is a secret",
"root_view_id": "VMHU10V25",
"state": {
"values": {}
},
"submit": null,
"team_id": "T8N4K1JN",
"type": "home"
}
}
Request
Query Params
user_id
stringÂ
required
id
of the user you want publish a view to.view
stringÂ
required
hash
stringÂ
optional
Header Params
token
stringÂ
required
none
Responses
Modified at 2023-08-15 05:39:46