Manipuladores de notificações
--url 'https://updow.lat/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| page | Opcional Inteiro | O número da página que você quer resultados. Padrão para 1. |
| results_per_page | Opcional Inteiro | Quantos resultados você quer por página. Valores permitidos são: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Padrão para 25. |
--url 'https://updow.lat/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| name | Obrigatório String | - |
| type | Obrigatório String | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams |
| Opcional String | Disponível quando: type = email E-mail | |
| webhook | Opcional String | Disponível quando: type = webhook URL do Webhook |
| slack | Opcional String | Disponível quando: type = slack URL do webhook Slack |
| discord | Opcional String | Disponível quando: type = discord URL do webhook Discord |
| telegram | Opcional String | Disponível quando: type = telegram Token API Telegram |
| telegram_chat_id | Opcional String | Disponível quando: type = telegram ID do Chat Telegram |
| x_consumer_key | Opcional String | Disponível quando: type = x Token API Telegram |
| x_consumer_secret | Opcional String | Disponível quando: type = x Token API Telegram |
| x_access_token | Opcional String | Disponível quando: type = x Token API Telegram |
| x_access_token_secret | Opcional String | Disponível quando: type = x Token API Telegram |
--url 'https://updow.lat/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| name | Opcional String | - |
| type | Opcional String | Valores permitidos: email , webhook , slack , discord , telegram , microsoft_teams |
| Opcional String | Disponível quando: type = email E-mail | |
| webhook | Opcional String | Disponível quando: type = webhook URL do Webhook |
| slack | Opcional String | Disponível quando: type = slack URL do webhook Slack |
| discord | Opcional String | Disponível quando: type = discord URL do webhook Discord |
| telegram | Opcional String | Disponível quando: type = telegram Token API Telegram |
| telegram_chat_id | Opcional String | Disponível quando: type = telegram ID do Chat Telegram |
| x_consumer_key | Opcional String | Disponível quando: type = x Token API Telegram |
| x_consumer_secret | Opcional String | Disponível quando: type = x Token API Telegram |
| x_access_token | Opcional String | Disponível quando: type = x Token API Telegram |
| x_access_token_secret | Opcional String | Disponível quando: type = x Token API Telegram |
| is_enabled | Opcional Booleano | - |
--url 'https://updow.lat/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
--url 'https://updow.lat/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \