Reference
Queries#
costCenter#
Requires: scope cost_centers:read · feature cost_centers.
costCenter(id: ID!): CostCenter!
| Argument | Type | |
|---|---|---|
id | ID! | The id of the record to find. |
costCenters#
Requires: scope cost_centers:read · feature cost_centers.
costCenters(paging: CursorPaging!, filter: CostCenterFilter!, sorting: [CostCenterSort!]!): CostCenterConnection!
| Argument | Type | |
|---|---|---|
paging | CursorPaging! | Limit or page results. |
filter | CostCenterFilter! | Specify to filter the records returned. |
sorting | [CostCenterSort!]! | Specify to sort results. |
spendRequestCostCenters#
Active cost centers a purchase request can be put on (number, name, owner). Open to requesters, who cannot list cost centers otherwise.
Requires: scope cost_centers:read · feature spend_requests.
spendRequestCostCenters(profileId: ID!): [SpendCostCenterOption!]!
| Argument | Type | |
|---|---|---|
profileId | ID! |
Mutations#
createOneCostCenter#
Requires: scope cost_centers:write · feature cost_centers.
createOneCostCenter(profileId: ID!, input: CreateCostCenterInput!): CostCenter!
| Argument | Type | |
|---|---|---|
profileId | ID! | |
input | CreateCostCenterInput! |
createManyCostCenters#
Requires: scope cost_centers:write · feature cost_centers.
createManyCostCenters(profileId: ID!, input: [CreateCostCenterInput!]!): [CostCenter!]!
| Argument | Type | |
|---|---|---|
profileId | ID! | |
input | [CreateCostCenterInput!]! |
updateOneCostCenter#
Requires: scope cost_centers:write · feature cost_centers.
updateOneCostCenter(input: UpdateOneCostCenterInput!): CostCenter!
| Argument | Type | |
|---|---|---|
input | UpdateOneCostCenterInput! |
updateManyCostCenters#
Requires: scope cost_centers:write · feature cost_centers.
updateManyCostCenters(input: UpdateManyCostCentersInput!): UpdateManyResponse!
| Argument | Type | |
|---|---|---|
input | UpdateManyCostCentersInput! |
deleteOneCostCenter#
Requires: scope cost_centers:write · feature cost_centers.
deleteOneCostCenter(input: DeleteOneCostCenterInput!): CostCenterDeleteResponse!
| Argument | Type | |
|---|---|---|
input | DeleteOneCostCenterInput! |
deleteManyCostCenters#
Requires: scope cost_centers:write · feature cost_centers.
deleteManyCostCenters(input: DeleteManyCostCentersInput!): DeleteManyResponse!
| Argument | Type | |
|---|---|---|
input | DeleteManyCostCentersInput! |