# Dimension Values _(Realtime-enabled)_

`GET` `POST` `PATCH` `DELETE` _(Table: Dimension Value)_

```
eOne/core/v1.0/dimensionValues
```

Create and maintain the values that belong to a dimension. `dimensionCode` + `code` together form the key, so both are required on create.

## Create a dimension value

`POST` `/dimensionValues`

```
{
  "dimensionCode": "DEPARTMENT",
  "code": "SALES",
  "displayName": "Sales Department",
  "dimensionValueType": "Standard"
}
```

The parent dimension (`dimensionCode`) must already exist. `dimensionValueType` accepts Standard, Heading, Total, Begin-Total or End-Total.

> **Caution:** This endpoint has **no** integrationId. A dimension value is addressed by its natural (dimensionCode, code) key. To assign values onto records, see [Dimensions](https://eonesolutions.github.io/eone-bc-integration/dimensions.md).

## Dimension Values fields

_API column → BC field._

**Legend**

- _(req)_ required on create
- _(res)_ resolver
- _(cur)_ currency-translated
- _(ro)_ read-only
- _(ext)_ added to this endpoint by another extension (BC field name shown; its API column name is not known here)

| API | BC field | Notes |
| --- | --- | --- |
| `id` | SystemId | BC record GUID. _(ro)_ |
| `bcCompanyId` | bcCompanyId | The company this row belongs to - the same GUID that appears in the request URL. Present on every endpoint so a store pooling several companies can keep them apart without relying on which URL it called. _(ro)_ |
| `bcCompanyName` | bcCompanyName | The name of the company this row belongs to. _(ro)_ |
| `dimensionCode` | Dimension Code | Parent dimension; part of the key. Required. _(req)_ |
| `code` | Code | Value code; part of the key. Required. _(req)_ |
| `displayName` | Name | Value name. |
| `dimensionValueType` | Dimension Value Type | Standard / Heading / Total / Begin-Total / End-Total. |
| `totaling` | Totaling | Range, for Total / End-Total types. |
| `blocked` | Blocked | Blocks use in new transactions. |
| `consolidationCode` | Consolidation Code | Maps to a consolidation company value. |
| `indentation` | Indentation | Hierarchy indent for reporting. |
| `createdDateTime` | SystemCreatedAt | _(ro)_ |
| `lastModifiedDateTime` | SystemModifiedAt | _(ro)_ |
