CRM automation
Получить правило автоматизации
Changed onВозвращает указанное правило автоматизации CRM.
get/api/v1/crm/automation/rules/{id}
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Path parameters
id, string uuid required
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Response
Правило
CRMAutomation Rule required
id, string uuid required
name, string required
event_type, 'lead.created' | 'lead.qualified' | 'deal.created' | 'deal.stage_changed' | 'inbox.message_received' required
conditions, object nullable required
Допустимые ключи - status, stage_id, owner_id
actions, CRMAutomation Action[] nullable required
is_enabled, boolean required
created_by, integer required
created_at, string date-time required
updated_at, string date-time required
adopted_at, string date-time
Правило перенесено на общий движок: события после этого момента исполняет правило adopted_rule_id; здесь оно не правится (409)
adopted_rule_id, string uuid
adoption_problem, object
Почему правило осталось в CRM: общий движок его не принял. Перенос идёт сам, правило с исправленным условием переедет при следующем проходе
Changes
- info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
5 more changes in this revision
- info