POST
/
v0
/
project
/
export_template
curl --request POST \
  --url 'https://api.unify.ai/v0/project/export_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "template": {
        "interfaces": [
            {
                "name": "Analytics Dashboard",
                "tabs": [
                    {
                        "name": "Overview",
                        "tiles": [
                            {
                                "name": "Data Table",
                                "type": "Table",
                                "position": {
                                    "x": 0,
                                    "y": 0,
                                    "width": 6,
                                    "height": 4
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "metadata": {
        "exported_at": "2024-01-01T12:00:00Z"
    },
    "export_stats": {
        "interfaces": 1,
        "tabs": 1,
        "tiles": 1
    }
}

Export project interfaces as a reusable template.

Authorizations

Authorization
string
required

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

Body

project
string
required
interface_names
array | null
checkpoint
boolean
default:"false"
include_metadata
boolean
default:"true"
description
string | null
tags
[string]
default:"[]"
template_name
string | null
curl --request POST \
  --url 'https://api.unify.ai/v0/project/export_template' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "template": {
        "interfaces": [
            {
                "name": "Analytics Dashboard",
                "tabs": [
                    {
                        "name": "Overview",
                        "tiles": [
                            {
                                "name": "Data Table",
                                "type": "Table",
                                "position": {
                                    "x": 0,
                                    "y": 0,
                                    "width": 6,
                                    "height": 4
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "metadata": {
        "exported_at": "2024-01-01T12:00:00Z"
    },
    "export_stats": {
        "interfaces": 1,
        "tabs": 1,
        "tiles": 1
    }
}