## Archive `client.Chats.Archive(ctx, chatID, body) error` **post** `/v1/chats/{chatID}/archive` Archive or unarchive a chat. Set archived=true to move to archive, archived=false to move back to inbox ### Parameters - `chatID string` Unique identifier of the chat. - `body ChatArchiveParams` - `Archived param.Field[bool]` True to archive, false to unarchive ### Example ```go package main import ( "context" "github.com/beeper/desktop-api-go" ) func main() { client := beeperdesktopapi.NewClient( ) err := client.Chats.Archive( context.TODO(), "!NCdzlIaMjZUmvmvyHU:beeper.com", beeperdesktopapi.ChatArchiveParams{ }, ) if err != nil { panic(err.Error()) } } ```