---
title: "Add a Compensation Type"
method: POST
path: "/add/COHT"
tags: ["Sales Compensations"]
---

# Add a Compensation Type

`POST /add/COHT`

Creates a Compensation Type record in the Compensation Header Types table.

## Request body

- object
  - `data` object
    - `uniqueName` string, required — A unique identification of this type. This name will be used in the Compensation Plan document as a foreign key, to identify the Compensation Header Type used.
    - `headerFormulaName` string — A name of the logic used for building inputs and calculating results for the Compensation Plan header, but can also manipulate the items and folders.
    - `workflowFormulaName` string — A name of the approval workflow logic, which will build the approval steps for the Compensation Plan document.
    - `configuration` string, nullable — A configuration (as JSON string) of the detail page. You can configure e.g., the additional tabs on Compensation Plan detail page, which will show information in form of a dashboard.
    - `scRecordWorkflowFormulaName` string — A name of the approval workflow logic, which will build the approval steps for the compensation records.
    - `scTypeFilterFormulaName` string — A name of the logic which will be used to filter the available Compensation Condition Types, while the user is adding a new item to the Compensation Plan document.
  - `operation` string, required

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` CompensationHeaderType[]
      - `configuration` object, nullable — A configuration (as JSON string) of the detail page. You can configure e.g., the additional tabs on Compensation Plan detail page, which will show information in form of a dashboard. See [Detail Page Layout and Dynamic Tabs](https://pricefx.atlassian.net/wiki/spaces/KB/pages/3980492805) for more details.
        - `additionalProperties` object
      - `createDate` string, date-time
      - `createdBy` integer
      - `headerFormulaName` string — A name of the logic used for building inputs and calculating results for the Compensation Plan header, but can also manipulate the items and folders.
      - `label` string, nullable
      - `lastUpdateBy` integer
      - `lastUpdateDate` string, date-time
      - `scRecordWorkflowFormulaName` string — A name of the approval workflow logic, which will build the approval steps for the compensation records.
      - `scTypeFilterFormulaName` string, nullable — A name of the logic which will be used to filter the available Compensation Condition Types, while the user is adding a new item to the Compensation Plan document.
      - `typedId` string
      - `uniqueName` string — A unique identification of this type. This name will be used in the Compensation Plan document as a foreign key, to identify the compensation header type used.
      - `userGroupEdit` string, nullable
      - `userGroupViewDetails` string, nullable
      - `version` integer
      - `workflowFormulaName` string, nullable — A name of the approval workflow logic, which will build the approval steps for the Compensation Plan document.
      - `attribute1` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute2` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute3` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute4` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute5` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute6` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute7` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute8` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute9` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute10` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute11` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute12` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute13` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute14` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute15` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute16` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute17` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute18` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute19` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute20` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute21` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute22` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute23` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute24` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute25` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute26` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute27` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute28` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute29` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
      - `attribute30` union
        - integer, nullable
        - string, nullable
        - number, nullable
        - string, date-time, nullable
        - string, date, nullable
        - string, uri, nullable
    - `status` integer

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
