Skip to Content
Levain LabsLevain Labs
API ReferenceOrganization

Update Org

Change org settings.

Change org settings.

default_workspace_cap_usd_micros is the hard spend cap every workspace provisioned from now on starts with, so a new end-customer is bounded from its first run without a second call to PUT /api/v1/org/workspaces/{workspace_id}/cap. Workspaces that already exist keep whatever cap they have; change those individually. See the per-workspace endpoint for what happens at the cap.

PATCH
/api/v1/org

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

X-API-Key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://api.levainlabs.com/api/v1/org" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "default_workspace_cap_usd_micros": 0,
  "created_at": "2019-08-24T14:15:22Z"
}