KuikCodeDocs
APIReferenceTemplates

Save a code's design as a template

POST
/codes/{id}/template

Copies the code's design (not its destination) into a saved template the workspace can start new codes from, with the code's thumbnail as the preview. Counts against the plan's template ceiling.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/codes/string/template" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "name": "string",  "previewUrl": "string"}