← API reference
Mutation / jobs

upsertWorkCenter

Create a work center, or fully overwrite an existing one when input.id matches one in the caller's tenant. Unlike updateWorkCenter this replaces every field, so omitted optional fields are cleared. Requires workCenter:write permission.

Arguments

Full work center state to write. Include id to overwrite an existing work center; omit it to create one.

Returns UpsertWorkCenterPayload!

Explore in a view

Production Floor
View exact SDL
"""
Create a work center, or fully overwrite an existing one when input.id matches one in the caller's tenant. Unlike updateWorkCenter this replaces every field, so omitted optional fields are cleared. Requires workCenter:write permission.
"""
upsertWorkCenter(
  """
  Full work center state to write. Include id to overwrite an existing work center; omit it to create one.
  """
  input: UpsertWorkCenterInput!
): UpsertWorkCenterPayload! @topic(names: ["jobs"])

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