Skip to content
Navigation

Remove someone from a community channel

DELETE
https://api.nicer.travel/community/channels/{channelId}/members/{userId}

Removes one person (userId) from a channel of the agency's community and publishes app.CommunityChannelMember.removed. On a public channel only an admin removes someone else, and anyone may remove themselves; on a private channel any of its members or an admin may remove anyone. Errors: 400 ERROR_UNAUTHORIZED for a caller who may not, or for a channel of another agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • channelId
    string
    required
  • userId
    string
    required

Returns

200

OK

JSON
  • channelId
    string
    required

    The channel the person was removed from.

  • userId
    string
    required

    The person who is no longer in it.

  • removed
    boolean
    required

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close