# Atualizar apenas o nome e descrição curl -X PUT https://api.disparador.com/api/automations/10 \ -H "Content-Type: application/json" \ -H "X-Access-Token: seu-access-token" \ -d '{ "name": "Aniversariantes - Novo Nome", "description": "Descrição atualizada" }' # Desativar automação curl -X PUT https://api.disparador.com/api/automations/10 \ -H "Content-Type: application/json" \ -H "X-Access-Token: seu-access-token" \ -d '{ "isActive": false }' # Alterar horário de execução curl -X PUT https://api.disparador.com/api/automations/10 \ -H "Content-Type: application/json" \ -H "X-Access-Token: seu-access-token" \ -d '{ "schedule": { "timeOfDay": "10:00", "timezone": "America/Sao_Paulo" } }'
{ "id": 10, "name": "Aniversariantes - Novo Nome", "description": "Descrição atualizada", "isActive": true, "scheduleType": "DAILY", "schedule": { "timeOfDay": "10:00", "timezone": "America/Sao_Paulo", "weekdays": [2, 3, 4, 5, 6] }, "databaseConfigId": 1, "evolutionConfigId": 2, "intervalMinSeconds": 10, "intervalMaxSeconds": 30, "notificationPhone": null, "dedupStrategy": "COOLDOWN_DAYS", "dedupCooldownDays": 30, "sendLimitPerRun": 200, "lastRunAt": "2024-01-21T09:00:00", "nextRunAt": "2024-01-22T10:00:00", "createdAt": "2024-01-01T10:00:00", "updatedAt": "2024-01-21T16:30:00" }
Atualiza os campos de uma automação existente
{ "isActive": false }
{ "schedule": { "timeOfDay": "08:30" } }
{ "notificationPhone": "5511999999999" }
{ "sendLimitPerRun": 50, "intervalMinSeconds": 30, "intervalMaxSeconds": 60 }
{ "scheduleType": "MONTHLY", "schedule": { "dayOfMonth": 15, "timeOfDay": "10:00" } }
scheduleType
schedule
nextRunAt
filters
messageConfig
Was this page helpful?