---
title: "Upsert wage groups."
method: POST
path: "/wage_group/upsert"
tags: ["Cost control|Wage group"]
---

# Upsert wage groups.

`POST /wage_group/upsert`

This endpoint enables you to create/update wage groups.

## Request body

- StandardWageGroupUpsertRequest
  - `records` object[] — The records. This Parameter is optional.
    - `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 ID | | externalid | The external ID of the wage group |
    - `data` WageGroupUpsertRequestRecordData
      - `id` integer — The internal id of the wage group.
      - `name` string — The name of the wage group. (max. 255 characters)
      - `externalId` string — The external ID of the wage group. (max. 128 characters)
  - `dryRun` boolean — Simulate the operation. (No records will be created or changed) This Parameter is optional.

## Response `200`

Success Response:

- StandardWageGroupUpsertResponse
  - `createdWageGroups` object[] — The created wage groups.
    - `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
  - `updatedWageGroups` object[] — The changed wage groups.
    - `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

---

[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)
