Skip to content
Navigation

Archive or unarchive a chat

POST
https://api.nicer.travel/chat/{chatId}/toggle-archive

Sets the caller's own archive flag: on a trip chat it updates the caller's trip membership row, on a direct chat it adds or removes the caller in the archived-by set. Other participants are unaffected. The caller must be a participant. Echoes the requested state back.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • chatId
    string
    required

Request body JSON required

  • isArchived
    boolean
    required

Returns

200

OK

JSON
  • isArchived
    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