Skip to the page

Approve an update at its stated price (owner)

POST/v1/organisations/{id}/environments/{envId}/update/approve

Operation environments.approveUpdate · since 2026-11-05 · stable

Needs a session withwritescopeAnswers200 OK

Path parameters

idstring (uuid)required
The organisation id.
envIdstring (uuid)required
The environment id.

Body (JSON)

planIdstring (uuid)required
The plan you approve, as environments.get answers it. A plan that changed since is refused (plan_changed).
hourlynumberrequired
The hourly price you approve, as stated on the plan.
monthlynumberrequired
The monthly price you approve, as stated on the plan.
teamMonthlynumberoptional
The monthly price of the AI team, when the environment has one.
updateIdstring (uuid)required
The update you approve.

Errors

Every error is { "error", "message", "detail"? } (Errors and references). Besides the codes any route can answer, this one refuses with:

  • limit_spend
  • limit_account_budget
POST/v1/organisations/{id}/environments/{envId}/update/approve
curl -X POST "https://api.rykloud.com/v1/organisations/$ORG_ID/environments/$ENV_ID/update/approve" \
  -H "Authorization: Bearer $RYKLOUD_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "planId": "00000000-0000-4000-8000-000000000000",
  "hourly": 0,
  "monthly": 0,
  "updateId": "00000000-0000-4000-8000-000000000000"
}'
With the rykloud CLI
rykloud envs update --approve

Command reference: rykloud envs update