Automatisations
Règles d'automatisation et leurs exécutions. 4 opérations.
app_automation_executions
Table
Exécutions des règles.
Colonnes (19)
| Nom | Type | À savoir |
|---|---|---|
| id | string (uuid) | — |
| org_id | string (uuid) | — |
| automation_id | string (uuid) | — |
| automation_version | integer | — |
| status | string | — |
| trigger_kind | string | — |
| trigger_event | string | — |
| trigger_payload | objet | JSON (objet, tableau ou scalaire) |
| actions_executed | objet | JSON (objet, tableau ou scalaire) |
| created_entities | objet | JSON (objet, tableau ou scalaire) |
| dedup_key | string | — |
| correlation_id | string (uuid) | — |
| occurrence_index | integer | — |
| scheduled_for | string (date-time) | — |
| started_at | string (date-time) | — |
| completed_at | string (date-time) | — |
| duration_ms | integer | — |
| error_code | string | — |
| error_message | string | — |
- GET
/api/v1/db/app_automation_executionsLire app_automation_executions
Exécutions des règles.
Droit : automations:read
app_automations
Table
Règles d'automatisation (lecture seule).
Colonnes (18)
| Nom | Type | À savoir |
|---|---|---|
| id | string (uuid) | — |
| org_id | string (uuid) | — |
| name | string | — |
| description | string | — |
| status | string | — |
| scope_kind | string | — |
| scope_id | string (uuid) | — |
| trigger | objet | JSON (objet, tableau ou scalaire) |
| actions | objet | JSON (objet, tableau ou scalaire) |
| version | integer | — |
| execution_count | integer | — |
| consecutive_failures | integer | — |
| last_executed_at | string (date-time) | — |
| last_execution_status | string | — |
| next_run_at | string (date-time) | — |
| created_by | string (uuid) | — |
| created_at | string (date-time) | — |
| updated_at | string (date-time) | — |
- GET
/api/v1/db/app_automationsLire app_automations
Règles d'automatisation (lecture seule).
Droit : automations:read
automations_compute_next_run()
Fonction
- GET
/api/v1/db/rpc/automations_compute_next_runProchaine exécution d'une planification, sans rien écrire.
automations_compute_next_run(p_schedule jsonb, p_after timestamptz) → timestamptzUn argument p_org_id / p_org / p_org_slug doit désigner l'organisation de la clé (403 ORG_MISMATCH). En GET, les arguments passent en query string.Droit : automations:read - POST
/api/v1/db/rpc/automations_compute_next_runProchaine exécution d'une planification, sans rien écrire.
automations_compute_next_run(p_schedule jsonb, p_after timestamptz) → timestamptzUn argument p_org_id / p_org / p_org_slug doit désigner l'organisation de la clé (403 ORG_MISMATCH).Droit : automations:readArguments (2)
Arguments de /api/v1/db/rpc/automations_compute_next_run Nom Type À savoir p_schedule objet obligatoire · JSON (objet, tableau ou scalaire) p_after string (date-time) obligatoire