Skip to main content

teams subscribe create

Auto-generated reference

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

Create a new subscription.

Synopsis

teams subscribe create --resource RESOURCE --change-type TYPES --webhook-url URL [--expiration ISO8601] [--client-state VALUE]

Options

OptionValueRequiredEnvDefaultDescription
--resourceRESOURCEyesResource path to subscribe to (for example, /teams/all/messages)
--change-typeTYPESyesComma-separated change types: created, updated, or deleted
--webhook-urlURLyesWebhook URL for notifications
--expirationISO8601noExpiration date-time in ISO 8601 format (defaults to one hour from now)
--client-stateVALUEnoClient state string for notification validation

Examples

No command-specific examples are published yet.

Exit Codes

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

See Also