Skip to content
Navigation

Add people to a community channel

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

Adds people of the agency, by userId (500 at most), to a channel of its community and answers the channel's whole member list. Anyone in the agency may add to a public channel; a private one takes one of its members or an admin. Adding someone already in it changes nothing. Errors: 400 ERROR_UNAUTHORIZED for a caller who may not add to a private channel, for a channel of another agency, or for a userId who is not an active member of the agency, and then nobody is added; 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

Request body JSON required

  • userIds
    array of
    string
    required
    minLength: 1

Returns

200

OK

JSON
  • channelId
    string
    required

    The channel.

  • members
    array of
    object
    required

    Everyone in the channel now.

    • userId
      string
      required

      The member's userId.

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