/v2/agents/configsCreate an Environment Config
Creates an immutable Environment Config for the team from a name and environment-spec YAML. Supply name and manifest_yaml; optionally set per-signal Insights telemetry preferences with insights. Declare tenant secrets in the environment spec, not as sibling request fields; secret values are never returned, and you must create a clone to change config content.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Environment Config create body. Declare tenant secrets in the environment-spec YAML under secrets or legacy spec.secrets; secret values are write-only and are never returned.
A 400 is returned for an invalid name, JSON wrapper, or environment spec. A 401 indicates authentication failed due to invalid credentials. A 409 is returned when an active config already exists for the team with the same name. A 413 is returned when the request body exceeds 1 MiB, and a 415 is returned when the content type is not application/json. A 429 indicates the API rate limit has been exceeded, and a 500 indicates a server error. name and manifest_yaml are required; name must be 1–64 characters, match the specified naming pattern, and be unique among the team's active configs. manifest_yaml must not exceed 512 KiB.