Secrets (env. scope)
Bulk set (upsert)
Create or update secrets in the selected environment. The secret will be updated if it already exists or created if it does not exist.
Create or update secrets in the selected environment. The secret will be updated if it already exists or created if it does not exist.
Request Body
application/json
The list of secrets to set
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/environment/secrets/" \ -H "Content-Type: application/json" \ -d '[ { "name": "string", "value": "string" } ]'{
"created_secrets": [
"DB_PASSWORD",
"API_TOKEN"
],
"updated_secrets": [
"DB_USER"
]
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}