curl --request POST \
--url https://api.archera.ai/v1/org/{org_id}/commitment-plans/{plan_id}/apply \
--header 'x-api-key: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"is_calculating": true,
"status": "new",
"max_term": "<string>",
"covered_ondemand_cost_hourly": 123,
"before_ondemand_cost_hourly": 123,
"before_reserved_cost_hourly": 123,
"amortized_cost_hourly": 123,
"recurring_cost_hourly": 123,
"upfront_cost_hourly": 123,
"before_cost_hourly": 123,
"after_cost_hourly": 123,
"total_cost_hourly": 123,
"savings_hourly": 123,
"fee_hourly": 123,
"commitment_coverage": 123,
"minimum_commitment_cost": 123,
"breakeven_hours": 123,
"total_savings": 123,
"monthly_savings": 123,
"total_monthly_before_cost": 123,
"description": "<string>"
}Executes a commitment purchase plan, initiating the commitment purchase process. This action will mark the plan as edited and record the user who initiated the purchase. The plan will then be processed for actual commitment purchases according to the plan specifications.
curl --request POST \
--url https://api.archera.ai/v1/org/{org_id}/commitment-plans/{plan_id}/apply \
--header 'x-api-key: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"is_calculating": true,
"status": "new",
"max_term": "<string>",
"covered_ondemand_cost_hourly": 123,
"before_ondemand_cost_hourly": 123,
"before_reserved_cost_hourly": 123,
"amortized_cost_hourly": 123,
"recurring_cost_hourly": 123,
"upfront_cost_hourly": 123,
"before_cost_hourly": 123,
"after_cost_hourly": 123,
"total_cost_hourly": 123,
"savings_hourly": 123,
"fee_hourly": 123,
"commitment_coverage": 123,
"minimum_commitment_cost": 123,
"breakeven_hours": 123,
"total_savings": 123,
"monthly_savings": 123,
"total_monthly_before_cost": 123,
"description": "<string>"
}API key for authentication. Get your key from User Settings > API Access in the Archera platform.
OK
new, reviewed, scheduled, completed, draft, needs_review, in_progress Was this page helpful?