Lock a configuration against renaming and deletion
/v1/secrets/configs/config/lockRequires admin access to the environment. Works only for branches; repeated calls change nothing.
Request
Authorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Query Parameters
- project stringrequired
Project alias
- config stringrequired
Configuration alias:
<environment>is the root configuration,<environment>/<name>is a branch or a personal configuration (<environment>/personal), for exampledev/local
Response
- Array [
- ]
Creation date
Names of secrets excluded from the missing list
environment object
Current user's access level to the environment
Possible values: [none, viewer, editor, admin]
editorCreation date
Identifier
10Date secrets were first read via the API
Name
ProductionDisplay order
1Personal configurations <environment>/personal are allowed
Alias
productionUpdate date
Identifier
500The configuration can't be renamed or deleted
The user's personal configuration
Root configuration of the environment
Date secrets were last read via the API
missing_secrets object[]
Secrets that exist in other root configurations of the project but are missing from this one; root configuration only
Name
DATABASE_URLNote
Connection string for the main databaseValue type
Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]
urlVisibility
Possible values: [masked, unmasked, restricted]
maskedName; empty for a root configuration
localAlias for requests: <environment> for a root configuration, otherwise <environment>/<name>
production/localType: original — root configuration, duplicate — branch, personal — personal configuration
Possible values: [original, duplicate, personal]
duplicateUpdate date