Skip to main content

teams subscribe 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 subscription

Synopsis​

teams subscribe create [OPTIONS] --resource <RESOURCE> --change-type <CHANGE_TYPE> --webhook-url <WEBHOOK_URL>

Options​

OptionValueRequiredEnvDefaultDescription
--resourceRESOURCEyesResource path to subscribe to (e.g., /teams/all/messages)
--change-typeCHANGE_TYPEyesChange types to subscribe to (comma-separated: created,updated,deleted)
--webhook-urlWEBHOOK_URLyesWebhook URL for notifications
--expirationEXPIRATIONnoExpiration date-time in ISO 8601 format
--client-stateCLIENT_STATEnoClient state string for validation

Examples​

No command-specific examples are published yet.

Exit Codes​

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

See Also​