Search + K

Command Palette

Search for a command to run...

Sign In

admin_conversations_setConversationPrefs

POST /admin.conversations.setConversationPrefs
Copy endpoint
https://slack.com/api

Set the posting permissions for a public or private channel.

Parameters

header Header Parameters

Name Type
token required

Authentication token. Requires scope: admin.conversations:write

string

Request Body

application/x-www-form-urlencoded required
{ channel_id: string;prefs: string; }

Responses

200 application/json

Typical success response

{ ok: DefsOkTrue
type DefsOkTrue = true
; }
default application/json

Typical error response

{ error: "feature_not_enabled" | "not_an_admin" | "channel_not_found" | "channel_type_not_supported" | "restricted_action" | "missing_scope" | "could_not_set_channel_pref" | "default_org_wide_channel";ok: DefsOkFalse
type DefsOkFalse = false
; }