Skip to content
Navigation

Leave a community channel

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

Removes the caller from a channel of the agency's community and answers left true, also when they were not in it. Any member of the agency may call it. Errors: 400 ERROR_UNAUTHORIZED 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

Returns

200

OK

JSON
  • channelId
    string
    required

    The channel the caller is no longer in.

  • left
    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