Reference
View as MarkdownShared variables API
18 operations. Every call needs a session cookie or an Authorization: Bearer nct_… token unless marked Public. Conventions, errors and scopes
/environments/{environmentId}/shared-variablesList an environment's shared variables (own values plus inherited project values)
Shared variables reach a service only through an explicit KEY=${{shared.KEY}} variable (see share). An environment value overrides the project value for that environment. Shared values may only reference other shared variables, team variables, external secrets, generators and transforms.
| Parameter | In | Type | Description |
|---|---|---|---|
environmentIdrequired | path | string |
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/environments/{environmentId}/shared-variablesUpsert environment shared variables (restages consumers)
| Parameter | In | Type | Description |
|---|---|---|---|
environmentIdrequired | path | string |
Request body · application/json · required
- SharedVariableInput[] | nullrequired
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/environments/{environmentId}/shared-variables/{key}Delete an environment shared variable (falls back to the project value)
| Parameter | In | Type | Description |
|---|---|---|---|
environmentIdrequired | path | string | |
keyrequired | path | string |
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/environments/{environmentId}/shared-variables/{key}/historyVersion history of an environment shared variable
| Parameter | In | Type | Description |
|---|---|---|---|
environmentIdrequired | path | string | |
keyrequired | path | string |
Response 200 · OK · application/json
- VariableHistoryEntry[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/environments/{environmentId}/shared-variables/{key}/rotateRotate a generated environment shared variable (plan or stage)
| Parameter | In | Type | Description |
|---|---|---|---|
environmentIdrequired | path | string | |
keyrequired | path | string |
Request body · application/json · required
- dryRunbooleanrequiredtrue returns the plan and changes nothing; false stages the new value (nothing is deployed)
Response 200 · OK · application/json
- RotationAffected[] | nullrequired
- RotationBlocker[] | nullrequired
- deployOrderstring[] | nullrequiredService slugs, providers first
- keystringrequired
- kindenum: app-secret | engine-boundrequired
- stagedbooleanrequired
- warningsstring[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/environments/{environmentId}/shared-variables/{key}/shareStage KEY=${{shared.KEY}} on services
| Parameter | In | Type | Description |
|---|---|---|---|
environmentIdrequired | path | string | |
keyrequired | path | string |
Request body · application/json · required
- serviceIdsstring[] | nullrequired
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/shared-variablesList a project's shared variables
Shared variables reach a service only through an explicit KEY=${{shared.KEY}} variable (see share). An environment value overrides the project value for that environment. Shared values may only reference other shared variables, team variables, external secrets, generators and transforms.
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string |
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/shared-variablesUpsert project shared variables (restages consumers in every environment)
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string |
Request body · application/json · required
- SharedVariableInput[] | nullrequired
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/shared-variables/{key}Delete a project shared variable
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string | |
keyrequired | path | string |
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/shared-variables/{key}/historyVersion history of a project shared variable
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string | |
keyrequired | path | string |
Response 200 · OK · application/json
- VariableHistoryEntry[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/shared-variables/{key}/rotateRotate a generated project shared variable (plan or stage)
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string | |
keyrequired | path | string |
Request body · application/json · required
- dryRunbooleanrequiredtrue returns the plan and changes nothing; false stages the new value (nothing is deployed)
Response 200 · OK · application/json
- RotationAffected[] | nullrequired
- RotationBlocker[] | nullrequired
- deployOrderstring[] | nullrequiredService slugs, providers first
- keystringrequired
- kindenum: app-secret | engine-boundrequired
- stagedbooleanrequired
- warningsstring[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/projects/{projectId}/shared-variables/{key}/shareStage KEY=${{shared.KEY}} on services
| Parameter | In | Type | Description |
|---|---|---|---|
projectIdrequired | path | string | |
keyrequired | path | string |
Request body · application/json · required
- serviceIdsstring[] | nullrequired
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/team/shared-variablesList the team's shared variables
Team variables apply to every project of the team and are referenced as ${{team.KEY}}. Like shared variables they reach a service only through an explicit KEY=${{team.KEY}} variable (see share). Only owners and admins may change them; a principal restricted to some projects has no access. Team values may only reference other team variables, external secrets (${{vault:integration/path#key}}), generators and transforms.
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/team/shared-variablesUpsert team shared variables (restages consumers in every project)
Request body · application/json · required
- SharedVariableInput[] | nullrequired
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/team/shared-variables/{key}Delete a team shared variable
| Parameter | In | Type | Description |
|---|---|---|---|
keyrequired | path | string |
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/team/shared-variables/{key}/historyVersion history of a team shared variable
| Parameter | In | Type | Description |
|---|---|---|---|
keyrequired | path | string |
Response 200 · OK · application/json
- VariableHistoryEntry[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/team/shared-variables/{key}/rotateRotate a generated team shared variable (plan or stage)
| Parameter | In | Type | Description |
|---|---|---|---|
keyrequired | path | string |
Request body · application/json · required
- dryRunbooleanrequiredtrue returns the plan and changes nothing; false stages the new value (nothing is deployed)
Response 200 · OK · application/json
- RotationAffected[] | nullrequired
- RotationBlocker[] | nullrequired
- deployOrderstring[] | nullrequiredService slugs, providers first
- keystringrequired
- kindenum: app-secret | engine-boundrequired
- stagedbooleanrequired
- warningsstring[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/team/shared-variables/{key}/shareStage KEY=${{team.KEY}} on services
| Parameter | In | Type | Description |
|---|---|---|---|
keyrequired | path | string |
Request body · application/json · required
- serviceIdsstring[] | nullrequired
Response 200 · OK · application/json
- SharedVariableView[] | nullrequired
- RestagedServiceRef[] | nullrequired
- VariableWarning[] | nullrequired
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.