PATCH
/
api
/
v1
/
dynamic-secrets
/
{name}
curl --request PATCH \
  --url https://us.infisical.com/api/v1/dynamic-secrets/{name} \
  --header 'Content-Type: application/json' \
  --data '{
  "projectSlug": "<string>",
  "path": "/",
  "environmentSlug": "<string>",
  "data": {
    "inputs": "<any>",
    "defaultTTL": "<string>",
    "maxTTL": "<string>",
    "newName": "<string>"
  }
}'
{
  "dynamicSecret": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "version": 123,
    "type": "<string>",
    "defaultTTL": "<string>",
    "maxTTL": "<string>",
    "folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "<string>",
    "statusDetails": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

name
string
required

The name of the dynamic secret.

Body

application/json
projectSlug
string
required

The slug of the project to update dynamic secret in.

Minimum length: 1
environmentSlug
string
required

The slug of the environment to update the dynamic secret in.

Minimum length: 1
data
object
required
path
string
default:
/

The path to update the dynamic secret in.

Response

200
application/json
Default Response
dynamicSecret
object
required

Was this page helpful?