Skip to content
Navigation

Update a community channel

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

Changes a channel's name or description, or, on a creator-only channel, who may post (writersToAdd and writersToRemove, by userId), and answers the channel without a memberCount. Only the channel's creator or the agency's admins may call it. Errors: 400 ERROR_UNAUTHORIZED for any other caller, for writer changes on a channel where all members post, for removing the creator from the writers, for a writer who is not an active member of the agency, 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

Request body JSON required

  • description
    optional

    Any of the following:

    • string
    • null
  • name
    optional
    string
    maxLength: 80 · minLength: 1
  • writersToAdd
    optional
    array of
    string
    minLength: 1
  • writersToRemove
    optional
    array of
    string
    minLength: 1

Returns

200

OK

JSON
  • channelId
    string
    required

    The channel's id.

  • companyName
    string
    required

    The agency the channel belongs to.

  • name
    string
    required

    The channel's name.

  • description
    required

    What the channel is for; null when it says nothing.

    Any of the following:

    • string
    • null
  • private
    boolean
    required

    Whether the channel is invite-only. A public channel is open to everyone in the agency.

  • writePolicy
    all-members
    or
    creator-only
    required

    Who may post: all-members, or creator-only for its creator and the writers granted posting.

  • createdBy
    string
    required

    The userId of the person who created the channel.

  • createdAt
    string
    required

    When the channel was created, as ISO 8601 text.

  • memberCount
    optional
    integer

    How many people are in the channel. Only getting and creating a channel answer it.

    maximum: 9007199254740991 · minimum: -9007199254740991

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