← API reference
Mutation / costing

createCostCategory

Create a new cost category, failing if the code is already taken. Requires costcategory:write permission.

Arguments

Cost category data

Returns UpsertCostCategoryPayload!

Explore in a view

ERP Costing
View exact SDL
"""
Create a new cost category, failing if the code is already taken. Requires costcategory:write permission.
"""
createCostCategory(
  """Cost category data"""
  input: CreateCostCategoryInput!
): UpsertCostCategoryPayload! @topic(names: ["costing"])

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