API
संस्करण
प्रकाशित हुआ हर संस्करण, सबसे नया पहले, हर एक उस परिभाषा के साथ जो उसने स्थिर की। किसी एक को बहाल करने से वह वापस ड्राफ़्ट में कॉपी हो जाता है।
GET/automations/{id}/versions
2 कॉल में से कोई भी आपके वर्कस्पेस पर चलाता है।
GET /automations/{id}/versions
प्रकाशित हुआ हर संस्करण, सबसे नया पहले, हर एक उस परिभाषा के साथ जो उसने स्थिर की। किसी एक को बहाल करने से वह वापस ड्राफ़्ट में कॉपी हो जाता है।
उदाहरण
पढ़ने के लिए automations:read और बहाल करने के लिए automations:write चाहिए।
curl "$OE/automations/aut_7c2e9a1f4b8d30c65e1a9f27/versions" -H "$AUTH"curl -X POST "$OE/automations/aut_7c2e9a1f4b8d30c65e1a9f27/versions/1/restore" -H "$AUTH"{ "object": "list", "data": [ { "object": "automation_version", "id": "auv_4e7a2c9d1f6b38e05a2d7c91", "automationId": "aut_7c2e9a1f4b8d30c65e1a9f27", "version": 2, "definition": { "trigger": { "kind": "audience_joined", "…": "…" }, "entry": "welcome", "steps": ["…"] }, "current": true, "createdBy": "q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E", "createdAt": "2026-10-02T09:14:00.000Z" } ]}current उस संस्करण को दिखाता है जो चल रहा है।
बहाल करने से सिर्फ़ ड्राफ़्ट बदलता है और जवाब में पूरा ऑटोमेशन आता है। बहाल की गई परिभाषा चलाने के लिए प्रकाशित करें।