POST
/
v0
/
project
/
import_template
curl --request POST \
  --url 'https://api.unify.ai/v0/project/import_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "success": true,
    "import_stats": {
        "interfaces": 2,
        "tabs": 4,
        "tiles": 10
    },
    "created_ids": {
        "interface_ids": [
            "abc123",
            "def456"
        ]
    },
    "warnings": []
}

Import a project template into a project.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

project
string
required
template
object
required
validate_first
boolean
default:"true"
auto_sanitize
boolean
default:"true"
overwrite_existing
boolean
default:"false"
interface_name_prefix
string | null
curl --request POST \
  --url 'https://api.unify.ai/v0/project/import_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "success": true,
    "import_stats": {
        "interfaces": 2,
        "tabs": 4,
        "tiles": 10
    },
    "created_ids": {
        "interface_ids": [
            "abc123",
            "def456"
        ]
    },
    "warnings": []
}