# Archive a chatroom **PATCH /chat/chatrooms/{chatroom}/ambassadors/{ambassador}/archive** ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Authentication methods - Bearer token ## Parameters #### Headers - **X-Popsell-Brand** (integer) The id of the target brand #### Path parameters - **chatroom** (integer) The chatroom id - **ambassador** (integer) The ambassador id ## Body parameters Content-type: application/json - **archive** (boolean) Archived value , (true: archived, false: unarchived) ## Responses ### 200: Return success message #### Body Parameters: application/json (object) - **message** (string) ### 401: Unauthorized. #### Body Parameters: application/json (object) - **message** (string) ### 403: Forbidden - You don't have permission to access this route ### 404: Not found - The chatroom does not exist ### 422: Unprocessable Content #### Body Parameters: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)