Skip to main content
PUT
Create or update a UI template

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'

Path Parameters

api_name
string
required
template_id
string
required

Body

application/json

Request body for creating/updating a UI template.

html
string
required

HTML content of the template

application_id
string | null

Application/API name for searchability

operation_id
string | null

Operation ID for searchability

type
string | null

Template type (e.g., table, list)

is_default
boolean
default:false

Whether this is the default template for the operation

csp_config
CSPConfig · object | null

Manual CSP configuration (overrides auto-detection)

ui_meta
UIResourceMeta · object | null

UI resource metadata with all advanced settings: CSP, permissions (camera, microphone, geolocation, clipboardWrite), domain, and prefersBorder

template_format
enum<string>
default:mcp-app

Template format: mcp-app (full JS app) or handlebars (simple template)

Available options:
mcp-app,
handlebars

Response

Successful Response

Response for create/update actions.

id
string
required

Template ID

action
string
required

Action performed: created or updated