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
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--resource | RESOURCE | yes | Resource path to subscribe to (for example, /teams/all/messages) | ||
--change-type | TYPES | yes | Comma-separated change types: created, updated, or deleted | ||
--webhook-url | URL | yes | Webhook URL for notifications | ||
--expiration | ISO8601 | no | Expiration date-time in ISO 8601 format (defaults to one hour from now) | ||
--client-state | VALUE | no | Client state string for notification validation |
Examples
No command-specific examples are published yet.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 6 | rate limited |