curl --request PATCH \
--url https://us.infisical.com/api/v1/dynamic-secrets/{name} \
--header 'Content-Type: application/json' \
--data '
{
"projectSlug": "<string>",
"environmentSlug": "<string>",
"data": {
"inputs": "<unknown>",
"defaultTTL": "<string>",
"maxTTL": "<string>",
"newName": "<string>",
"metadata": [
{
"key": "<string>",
"value": ""
}
],
"usernameTemplate": "<string>"
},
"path": "/"
}
'{
"dynamicSecret": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": 123,
"type": "<string>",
"defaultTTL": "<string>",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"maxTTL": "<string>",
"status": "<string>",
"statusDetails": "<string>",
"projectGatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"usernameTemplate": "<string>",
"gatewayV2Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": [
{
"key": "<string>",
"value": ""
}
],
"inputs": "<unknown>"
}
}curl --request PATCH \
--url https://us.infisical.com/api/v1/dynamic-secrets/{name} \
--header 'Content-Type: application/json' \
--data '
{
"projectSlug": "<string>",
"environmentSlug": "<string>",
"data": {
"inputs": "<unknown>",
"defaultTTL": "<string>",
"maxTTL": "<string>",
"newName": "<string>",
"metadata": [
{
"key": "<string>",
"value": ""
}
],
"usernameTemplate": "<string>"
},
"path": "/"
}
'{
"dynamicSecret": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": 123,
"type": "<string>",
"defaultTTL": "<string>",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"maxTTL": "<string>",
"status": "<string>",
"statusDetails": "<string>",
"projectGatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"usernameTemplate": "<string>",
"gatewayV2Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": [
{
"key": "<string>",
"value": ""
}
],
"inputs": "<unknown>"
}
}The name of the dynamic secret.
The slug of the project to update dynamic secret in.
1The slug of the environment to update the dynamic secret in.
1Show child attributes
The new partial values for the configured provider of the dynamic secret
The default TTL that will be applied for all the leases.
The maximum limit a TTL can be leases or renewed.
The new name for the dynamic secret.
255The path to update the dynamic secret in.
Default Response
Show child attributes
Was this page helpful?