// Workspace Tenant Variables

List workspace tenant variables

List the tenant variables defined once for the workspace, and the projects that use each one.

GET/api/workspace/tenant-variable-templates

Description

A workspace tenant variable is a value each tenant fills in once and every project that uses the variable gets - for example a port or a secret shared by a customer's site and its API.

A project gets one only after it starts using it (POST /api/project/workspace-tenant-variables). usedBy lists those projects. Each tenant sets its values with PUT /api/tenant/variables without a projectId.

Secret defaults are never returned: defaultValue is always null for them, and hasDefault says whether one is set.

Parameters

NameInTypeRequiredDescription
workspaceId query string yes ID of the workspace.

Errors

StatusMeaning
400 Invalid workspaceId.
401 Missing or invalid Basic auth credentials, or the service account can't manage workspace variables in this workspace.