Templates
Convert draft to template
POST
Charges 1 credit per shot that is not already resolved. A draft whose shots
are all resolved (a template copied and left alone) costs nothing.
token_authheader
AuthorizationBearer <token>Token-based authentication using access tokens.
conversation_id*stringSuccessful Response
application/json- response
category*The created template.
presets*array<>Its presets, in shot order.
credits_used*Credits UsedWhat was actually charged: 1 per shot that needed writing.
curl -X POST "https://example.com/template-chat/string/create"{ "category": { "id": "string", "name": "string", "description": "string", "thumbnail_url": "string", "visibility": "shared", "created_by": "string", "created_at": "string", "swatch_source": null, "preset_count": 0, "preset_types": [ "flat_2_model" ], "groups": [ "string" ], "preset_previews": [ { "preset_code": "string", "name": "string", "preview_url": null, "framing": null, "angle": null } ] }, "presets": [ { "preset_code": "string", "name": "string", "description": "string", "type": "flat_2_model", "visibility": "shared", "groups": [ "string" ], "categories": [ { "id": "string", "name": "string", "description": "string", "thumbnail_url": "string", "visibility": "shared", "created_by": "string", "created_at": "string", "swatch_source": null, "preset_count": 0, "preset_types": [ "flat_2_model" ], "groups": [ "string" ], "preset_previews": [ { "preset_code": "string", "name": "string", "preview_url": null, "framing": null, "angle": null } ] } ], "instruction_data": {}, "created_by": "string", "created_at": "string", "updated_at": "string" } ], "credits_used": 0}