User

Update channel invitation preference

Changed on

Update channel invitation preference

This action updates a user's group channel invitation preference. Updating the application's default channel invitation preference won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update.

https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference

put/v3/users/{user_id}/channel_invitation_preference

Request

  • Base URL
    https://api-APP_ID.sendbird.com
  • Auth
    none declared

Path parameters

user_idstring required

(Required)

Headers

api-tokenstring
Example:{{API_TOKEN}}

Request body

auto_acceptboolean

Response

Successful response

auto_acceptboolean

Example response

{
  "auto_accept": true
}

Changes

    • warning

      deleted the header request parameter Api-Token

    • info

      added the new optional header request parameter api-token

    • info

      the request property became optional

    • info

      the header request parameter Api-Token became optional