---
title: "Create Compensation Benchmark Source"
method: POST
path: "/api/v1/compensation/benchmarks/sources"
tags: ["Compensation Benchmarking", "Public API"]
---

# Create Compensation Benchmark Source

`POST /api/v1/compensation/benchmarks/sources`

Creates a new benchmark source the company can attach to its benchmarks. The `name` must be non-empty; the reserved name `mercer` (case-insensitive) is rejected because Mercer sources are managed separately. Returns the new source's ID and the trimmed name.

OAuth Scopes: compensation_benchmarks.write

## Request body

- object
  - `name` string, required — Display name for the new benchmark source. Cannot be empty or equal to `mercer`.
  - `colorCode` string — Optional hex color used to display the source in the UI.

## Response `200`

Object with the newly created source's ID and name.

- object
  - `id` integer — ID of the newly created benchmark source.
  - `name` string

## Other responses

- `400` — The `name` is missing, empty, or the reserved value `mercer`.
- `403` — The authenticated caller lacks permission to modify compensation benchmarks.
- `500` — Unexpected server error while creating the benchmark source.

---

[API](https://skmtc.net/bamboohr/apis/bamboohr-api.md) · [All operations](https://skmtc.net/bamboohr/apis/bamboohr-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bamboohr/bamboohr-api/revisions/19ebf391a399/schema)
