# setTenantUITemplate

Audience: Programmer

Sets the per-workflow UI bundle URL templates for the tenant (remoteWebUITemplate / remoteMobileUITemplate in tenant.data).

Sets the per-workflow UI bundle URL templates for the tenant
(remoteWebUITemplate / remoteMobileUITemplate in tenant.data). The
templates carry {{.Slug}}/{{.Version}} placeholders that the workflow service
resolves per execution from the pinned deployment version.

Customers must never set these, so the resolver rejects any non-system
caller (ROLE_SYSTEM / IsSystemUser). Target tenant is derived from
X-Pyck-Tenant-Id (req.MutationTenantID). Only the provided fields are
written; omitted fields are left unchanged. Idempotent when the values
already match.

**Served by:** [management](https://docs.pyck.cloud/latest/api/services/management.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `input` | [SetTenantUITemplateInput](https://docs.pyck.cloud/latest/api/inputs/settenantuitemplateinput.md)! |  |  |

## Returns

[SetTenantUITemplateResponse](https://docs.pyck.cloud/latest/api/types/settenantuitemplateresponse.md)!

## Example

Sets the web UI bundle URL template of the tenant named by the X-Pyck-Tenant-Id header and leaves the mobile template unchanged. System caller only.

```graphql
mutation SetTenantUITemplate($input: SetTenantUITemplateInput!) {
  setTenantUITemplate(input: $input) {
    success
  }
}
```

**Variables**

```json
{
  "input": {
    "webTemplate": "<web UI bundle URL template>"
  }
}
```
