Commitment Plan Templates (Beta)

Agent-friendly commitment plan template endpoints

List commitment plan templates

get

Returns commitment plan templates scoped to one segment for the given provider. segment_id defaults to the provider-resources segment — same fallback as POST/PUT — so the typical caller sees exactly the templates tied to their default segment without cross-segment duplicates.

Path parameters
org_idstring · uuidRequired
Query parameters
providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Example: awsPossible values:
segment_idstring · uuid · nullableOptional

Optional segment ID to scope results. Defaults to the provider resources segment if not specified.

Default: null
Responses
chevron-right
200

OK

application/json
idstring · uuidRequired

Unique template identifier

namestringRequired

Human-readable template name

segment_idstring · uuidRequired

Segment this template generates plans for

created_atstring · date-timeRequired

When the template was created

is_system_generatedbooleanRequired

True if this template was created automatically by the system — the three built-ins that back Recommended / Balanced / High Savings. Describes origin, not role — system-generated templates are immutable.

auto_purchaseany ofRequired

Scheduled auto-purchase settings, or null if the template is not on a schedule.

or
object · nullableOptional
get
/beta/v1/org/{org_id}/commitment-plan-templates

Create a commitment plan template

post

Creates a reusable commitment plan template. If auto_purchase is provided, the system will regenerate and optionally purchase plans from this template on the given schedule.

Path parameters
org_idstring · uuidRequired
Body
providerstring · enumRequired

Cloud provider (aws, azure, gcp)

Example: awsPossible values:
segment_idstring · uuid · nullableOptional

Optional segment ID to scope results. Defaults to the provider resources segment if not specified.

Default: null
namestringRequired

Template name

auto_purchaseany ofOptional

Optional auto-purchase schedule to attach

Default: null
or
object · nullableOptional
Responses
chevron-right
200

OK

application/json
idstring · uuidRequired

Unique template identifier

namestringRequired

Human-readable template name

segment_idstring · uuidRequired

Segment this template generates plans for

created_atstring · date-timeRequired

When the template was created

is_system_generatedbooleanRequired

True if this template was created automatically by the system — the three built-ins that back Recommended / Balanced / High Savings. Describes origin, not role — system-generated templates are immutable.

auto_purchaseany ofRequired

Scheduled auto-purchase settings, or null if the template is not on a schedule.

or
object · nullableOptional
post
/beta/v1/org/{org_id}/commitment-plan-templates

Get a commitment plan template

get

Returns a single template by ID.

Path parameters
org_idstring · uuidRequired
template_idstring · uuidRequired
Responses
chevron-right
200

OK

application/json
idstring · uuidRequired

Unique template identifier

namestringRequired

Human-readable template name

segment_idstring · uuidRequired

Segment this template generates plans for

created_atstring · date-timeRequired

When the template was created

is_system_generatedbooleanRequired

True if this template was created automatically by the system — the three built-ins that back Recommended / Balanced / High Savings. Describes origin, not role — system-generated templates are immutable.

auto_purchaseany ofRequired

Scheduled auto-purchase settings, or null if the template is not on a schedule.

or
object · nullableOptional
get
/beta/v1/org/{org_id}/commitment-plan-templates/{template_id}

Update a commitment plan template

put

Merge-semantic update: only keys present in the body are applied. Pass auto_purchase: null to clear an existing schedule; omit the key to leave it untouched. System-generated templates can have their auto_purchase schedule edited but not their name or configuration.

Path parameters
org_idstring · uuidRequired
template_idstring · uuidRequired
Body
namestringOptional

New template name

auto_purchaseany ofOptional

Replacement schedule. Pass null to clear an existing schedule. Omit the key to leave the schedule untouched.

or
object · nullableOptional
Responses
chevron-right
200

OK

application/json
idstring · uuidRequired

Unique template identifier

namestringRequired

Human-readable template name

segment_idstring · uuidRequired

Segment this template generates plans for

created_atstring · date-timeRequired

When the template was created

is_system_generatedbooleanRequired

True if this template was created automatically by the system — the three built-ins that back Recommended / Balanced / High Savings. Describes origin, not role — system-generated templates are immutable.

auto_purchaseany ofRequired

Scheduled auto-purchase settings, or null if the template is not on a schedule.

or
object · nullableOptional
put
/beta/v1/org/{org_id}/commitment-plan-templates/{template_id}

Delete a commitment plan template

delete

Delete a template. System-generated templates cannot be deleted.

Path parameters
org_idstring · uuidRequired
template_idstring · uuidRequired
Responses
delete
/beta/v1/org/{org_id}/commitment-plan-templates/{template_id}

No content

Last updated

Was this helpful?