Skip to main content
PUT
/
api
/
app
/
{app_id}
/
secrets
/
{secret_name}
Update a secret's data
curl --request PUT \
  --url https://api.example.com/api/app/{app_id}/secrets/{secret_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}
'
{
  "secret_name": "<string>",
  "k8s_name": "<string>",
  "data": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "created_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

app_id
string<uuid>
required
secret_name
string
required

Body

application/json

Request model for updating an existing K8s secret's data.

data
SecretKeyValue · object[]
required

New key-value pairs (replaces all existing).

Response

Secret updated successfully

Detail view of a secret with masked values.

secret_name
string
required

User-facing name of the secret.

k8s_name
string
required

K8s resource name.

data
SecretKeyValue · object[]

Key-value pairs (values masked as '****').

created_at
string | null

ISO timestamp when the secret was created.