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

Import an interface 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
validate_first
boolean
default:"true"
auto_sanitize
boolean
default:"true"
overwrite_existing
boolean
default:"false"
template
object
required
new_interface_name
string | null
curl --request POST \
  --url 'https://api.unify.ai/v0/interfaces/import_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "success": true,
    "import_stats": {
        "interfaces": 1,
        "tabs": 2,
        "tiles": 5
    },
    "created_ids": {
        "interface_id": "abc123"
    },
    "warnings": []
}