← API reference
Mutation / commerce

updateCostCenter

Update a cost center. Only provided fields are changed. Requires costcenter:write permission.

Arguments

Cost center ID to update

Fields to update — only provided fields are changed

Returns UpsertCostCenterPayload!

Explore in a view

Order Intake
View exact SDL
"""
Update a cost center. Only provided fields are changed. Requires costcenter:write permission.
"""
updateCostCenter(
  """Cost center ID to update"""
  id: CostCenterID!
  """Fields to update — only provided fields are changed"""
  input: UpdateCostCenterInput!
): UpsertCostCenterPayload! @topic(names: ["commerce"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.