---
title: "Create a dimension source"
method: POST
path: "/headcount/dimension-sources"
tags: ["Headcount"]
---

# Create a dimension source

`POST /headcount/dimension-sources`

## Request

- Base URL: `https://api.cubesoftware.com`
- URL: `https://api.cubesoftware.com/headcount/dimension-sources`
- Auth: OAuth 2
  - Authorization code: `https://portal.cubesoftware.com/o/authorize/`
  - Token URL: `https://api.cubesoftware.com/o/token/`

Creates a source for one top-level dimension. Exactly one of member_id and roster_column_id is set. A null distribution_rule_id is the plan default.

## Headers

- `X-Company-ID` string, required

## Request body

- DimensionSource: Mixin to delegate create, update, and destroy operations to a service class.
  - `id` integer, required
  - `dimension_id` integer, required
  - `member_id` integer, nullable
  - `roster_column_id` string, uuid, nullable
  - `distribution_rule_id` integer, nullable

## Response `201`

- DimensionSource: Mixin to delegate create, update, and destroy operations to a service class.
  - `id` integer, required
  - `dimension_id` integer, required
  - `member_id` integer, nullable
  - `roster_column_id` string, uuid, nullable
  - `distribution_rule_id` integer, nullable

## Changes

> 34 revisions in range; 1 not diffed.

- **2026-10-20** `8309d011b5c0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cubesoftware/apis/cube-api/changes/headcount/dimension-sources/post.md)

---

[API](https://skmtc.dev/cubesoftware/apis/cube-api.md) - [All operations](https://skmtc.dev/cubesoftware/apis/cube-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cubesoftware/apis/cube-api/revisions/92c7a097d975?raw)
