Skip to main content

teams chat create

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.9.0. Do not edit it by hand.

Create a new chat

Synopsis​

teams chat create [OPTIONS]

Options​

OptionValueRequiredEnvDefaultDescription
--chat-typeCHAT_TYPEnogroupChat type: oneOnOne or group
--topicTOPICnoTopic for the chat (group chats only)
--membersMEMBERSnoMembers as comma-separated user IDs; append :guest for guest users (e.g. <id>,<id>:guest). Default role is owner

Examples​

Create a one-on-one chat​

teams chat create --type oneOnOne --members "$USER_ID,$COLLEAGUE_ID" --output json

Create a chat with a guest user​

teams chat create --type oneOnOne --members "$USER_ID,$GUEST_USER_ID:guest" --output json

Exit Codes​

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
6rate limited

See Also​