Secrets
Bulk create
Create new secrets in the selected environment. The secrets cannot be created if they already exist.
Create new secrets in the selected environment. The secrets cannot be created if they already exist.
Path Parameters
project_identifier*string
The name or the ID of the project.
environment_identifier*string
The name or the ID of the environment.
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
application/json
curl -X POST "https://example.com/v1/projects/string/environments/string/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
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}