Conversations
Admin Conversations Set Conversation Prefs
Set the posting permissions for a public or private channel.
Authorization
slackAuth admin.conversations:writeAuthorizationBearer <token>
In: header
Scope: admin.conversations:write
Header Parameters
token*string
Authentication token. Requires scope: admin.conversations:write
Content-Type*"application/x-www-form-urlencoded"
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
channel_id*string
The channel to set the prefs for
prefs*string
The prefs for this channel in a stringified JSON format.
Response Body
application/json
application/json
curl -X POST "https://example.com/admin.conversations.setConversationPrefs" \ -H "token: string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'channel_id=string&prefs=string'{ "ok": "True"}
