organization management

Update Organization V2

Partial update of an organization (RESTful PATCH, RFC 7396 merge-patch semantics).

A sent field is written and an omitted one is left untouched (presence is read from model_fields_set). Clear tokens are per field: budget limits and metadata clear with null, models with [], and object_permission with null (it merges when sent, so an empty {} is rejected). organization_alias is required and cannot be cleared. Validation failures return 422; the object-permission upsert, budget-row write, and org-row write are one transaction.

patch/v2/organization/{organization_id}

Path parameters

organization_idstring required

Request body

organization_aliasstring nullable
modelsstring[] nullable
metadataobject nullable
tpm_limitinteger nullable
rpm_limitinteger nullable
max_budgetnumber nullable
soft_budgetnumber nullable
max_parallel_requestsinteger nullable
model_max_budgetobject nullable
budget_durationstring nullable

Response

Successful Response

organization_idstring nullable
organization_aliasstring nullable
budget_idstring required
spendnumber
metadataobject nullable
modelsstring[]
model_spendobject nullable
created_bystring required
updated_bystring required
object_permission_idstring nullable
created_atstring date-time required
updated_atstring date-time required

Changes