PATCH
/api/automation/workflows/:id🔒 Bearer JWTBody (partial)
كل الحقول اختيارية. أرسل فقط ما تريد تغييره.
| الحقل | النوع | الوصف |
|---|---|---|
name | string | — |
description | string | null | — |
triggerType | enum | — |
triggerConfig | object | — |
nodes | array | — |
edges | any | — |
isActive | boolean | — |
domain | enum | — |
tags | string[] | — |
مثال — تفعيل workflow
curl -X PATCH https://operix.operixdigital.com/api/automation/workflows/clx123abc \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "isActive": true }'سلوك CRON
لو الـ workflow الـ CRON تغيّر (triggerConfig.cronExpression تعدّل، أو isActive قُلِب)، الـ schedules القديمة تُحذَف وتُسجَّل من جديد تلقائياً. لا تحتاج إعادة تشغيل.
Errors
| الكود | الرسالة | السبب |
|---|---|---|
| 401 | Unauthorized | |
| 404 | Workflow not found |