Settles a hold with the cost the effect actually incurred, returning whatever headroom the estimate held beyond it.
POST
/v1/m/finops/admission/commit
const url = 'https://example.com/v1/m/finops/admission/commit';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"actual_micro_usd":1,"handle":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/m/finops/admission/commit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "actual_micro_usd": 1, "handle": "example" }'Settles a hold with the cost the effect actually incurred, returning whatever headroom the estimate held beyond it.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “ Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
actual_micro_usd
The measured cost. Ingest the spend first, so the ceiling never under-counts during settlement. A repeat with the same amount is answered as the first commit was; another amount after a commit is refused with 409.
integer format: int64
handle
The handle Reserve answered with. An empty handle settles nothing.
string
Example generated
{ "actual_micro_usd": 1, "handle": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}