# Flag a chatroom **PATCH /chat/chatrooms/{chatroom}/ambassadors/{ambassador}/flag** ## 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: application/json (object) - **flag** (integer | null) Flag's value , (1: todo, 2: done) ## Responses ### 200 Return success message #### Body: application/json (object) - **message** (string | null) ### 401 Unauthorized. #### Body: 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: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)