Skip to content
Navigation

Delete a community channel

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

Deletes one of the agency's channels for good, with its messages and its member list: nothing is archived, whatever the path says. Publishes app.CommunityChannel.archived and answers archived true. Only the agency's admins may call it. Errors: 400 ERROR_UNAUTHORIZED for a caller who is not an admin or 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 that was deleted.

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