---
title: "Create wage group cost settings."
method: POST
path: "/wage_group_cost_setting/upsert"
tags: ["Cost control|Wage group cost setting"]
---

# Create wage group cost settings.

`POST /wage_group_cost_setting/upsert`

This endpoint enables you to create new wage group cost settings.

## Request body

- StandardWageGroupCostHistoryUpsertRequest
  - `records` object[] — The wage group cost setting data.
    - `keyField` string — This parameter specifies the name of the unique key used to distinctly assign each dataset in the API. | Value | Description | |----------------|-----------------------------| | id | The internal wage group cost setting ID |
    - `data` WageGroupCostHistoryUpsertRequestRecordData
      - `wageGroupId` integer — The internal id of the wage group that this setting is assigned to.
      - `projectCostsPerHour` number — The costs per work hour.
      - `projectCostTypeId` integer — The internal cost type id for work for this setting.
      - `logisticsCostsPerHour` number — The costs per drive hour.
      - `logisticsCostTypeId` integer — The internal cost type id for drives for this setting.
      - `from` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
  - `dryRun` boolean — Simulate the operation. (No records will be created or changed) This Parameter is optional.

## Response `200`

Success Response:

- StandardWageGroupCostHistoryUpsertResponse
  - `createdWageGroupCostSettings` object[] — The created wage group cost settings.
    - `id` integer — The internal id of the wage group cost setting.
    - `wageGroup` StandardWageGroupBaseWageGroupListItem
      - `id` integer — The internal id of the wage group.
      - `name` string — The name of the wage group.
      - `externalId` string — The external id of the wage group.
      - `createdAt` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
    - `projectCostsPerHour` number — The costs per work hour.
    - `projectCostType` string — The name of the cost type for work.
    - `logisticsCostsPerHour` number — The costs per drive hour.
    - `logisticCostType` string — The name of the cost type for drives.
    - `from` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
    - `to` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/versions/15839b24c497/schema)
