Skip to main content
POST
Create policy version

Authorizations

Authorization
string
header
required

Bearer token issued by Softmax

Body

application/json
name
string
required

Policy name for the new version.

container_image_id
string
required

Ready container image to run for this version.

Pattern: ^img_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
run
string[] | null

Command and arguments that start the policy, or null to use the image default.

Minimum array length: 1
env
Env · object | null

Non-secret environment variables for the policy process.

policy_secret_env_id
string<uuid> | null

Stored secret environment to attach to the policy version.

tags
Tags · object

Caller-owned tags for the policy version.

Response

Successful Response

id
string<uuid>
required

Policy version ID.

name
string
required

Name of the policy.

version
integer
required

Version number within the policy.

pools
string[] | null

Evaluation pools selected for the version.

submit_error
string | null

Submission error message, when one was recorded.