Secrets (env. scope)
Bulk create
Create new secrets in the current environment from the authenticated environment account API key. The secrets cannot be created if they already exist.
Create new secrets in the current environment from the authenticated environment account API key. The secrets cannot be created if they already exist.
Request Body
application/json
The list of secrets to create
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/environment/secrets/" \ -H "Content-Type: application/json" \ -d '[ { "name": "string", "value": "string" } ]'{
"created_count": 5,
"existing_secrets": [
"DB_PASSWORD",
"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
}
}
}