문서로 건너뛰기
API

템플릿 디자인 변경

디자이너가 지시를 적용하고 나머지는 그대로 둡니다.

POST/templates/{id}/redesign

워크스페이스에 실제 호출을 실행합니다.

POST /templates/{id}/redesign

디자이너가 지시를 적용하고 나머지는 그대로 둡니다.

예시

templates:write가 필요합니다. instructions에 바꿀 내용을 적습니다. 변경은 초안에 들어가며, 게시할 때까지 발송에는 게시된 버전이 쓰입니다.

curl
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입니다.

레퍼런스