---
title: "Update a dimension source"
method: PATCH
path: "/headcount/dimension-sources/{id}"
tags: ["Headcount"]
---

# Update a dimension source

`PATCH /headcount/dimension-sources/{id}`

## Request

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

Sets the member or the roster column. Exactly one of them remains set.

## Path parameters

- `id` string, required

## Headers

- `X-Company-ID` string, required

## Request body

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

## Response `200`

- 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/:id/patch.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)
