Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

branchName
string
required

The name of the branch to set the secret on

Query Parameters

responseFields
string

limits which fields are returned in the response body

Body

application/json

The secret name and value to set

Write-only input for creating or updating a headless secret. The read view is Mozu.AppDev.Contracts.HeadlessSecret, which intentionally has no Value property — secret plaintext is never returned to clients.

name
string
required
Minimum string length: 1
value
string
required
Minimum string length: 1

Response

OK

Read/list view of a headless secret: name and metadata only. This type intentionally has NO Value property — secret plaintext is never returned to clients, and the absence of the field makes that leak unrepresentable. Do not add a Value here; use Mozu.AppDev.Contracts.HeadlessSecretInput for writes.

lastModified
string<date-time> | null

When the secret was last modified, if known.

name
string | null

The secret's name.