POST /api/v1/projects/{project_id}/flags
Requires flags.write permission. The referenced environment must belong to the same project. A salt value is auto-generated for percentage-rollout hashing.
Path parameters
UUID of the project.
Request body
UUID of the environment to associate this flag with. Must belong to the current project.
URL-safe identifier for the flag. Example:
new-dashboard.Human-readable display name. Example:
New Dashboard.Optional description. Pass
null to leave it unset.Whether the flag is active on creation.
Value returned when no rule matches (or the flag is disabled).
Response
The newly created flag.
Errors
| Status | When |
|---|---|
400 | Request body is invalid or missing required fields |
403 | Caller lacks flags.write permission |
404 | Referenced environment not found |
409 | A flag with the same key already exists in this environment |