API
टेम्पलेट का डिज़ाइन बदलें
डिज़ाइनर आपके निर्देश लागू करता है और बाकी को वैसा ही छोड़ता है।
POST/templates/{id}/redesign
असली कॉल आपके वर्कस्पेस पर चलाता है।
POST /templates/{id}/redesign
डिज़ाइनर आपके निर्देश लागू करता है और बाकी को वैसा ही छोड़ता है।
उदाहरण
templates:write चाहिए। instructions बताता है कि क्या बदलना है। बदलाव ड्राफ़्ट में जाता है, और जब तक आप प्रकाशित न करें तब तक भेजे जाने वाले ईमेल प्रकाशित संस्करण ही रखते हैं।
curl -X POST "$OE/templates/spring-launch/redesign" -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "instructions": "Make the button orange and translate the copy into Spanish." }'{ "object": "template", "id": "tpl_8f3a1c2e9b7d4a60", "name": "Spring launch", "latestVersion": 2, "design": { "subject": "La primavera ya está aquí", "notes": [], "imageProblems": [], "changes": { "edited": 5, "added": 0, "removed": 0 }, "draftVersion": 2 }}कच्चे HTML में लिखा टेम्पलेट दोबारा डिज़ाइन नहीं हो सकता और 422 invalid_template है।