---
title: "Create PR for custom dimensions"
method: POST
path: "/api/v1/projects/{projectUuid}/git-integration/pull-requests/custom-dimensions"
tags: ["Git Integration"]
---

# Create PR for custom dimensions

`POST /api/v1/projects/{projectUuid}/git-integration/pull-requests/custom-dimensions`

Create a pull request for custom dimensions

## Path parameters

- `projectUuid` string, required

## Request body

- object
  - `quoteChar` '"' | '''
  - `customDimensions` CustomDimension[], required
    - union
      - union
        - FixedNumberBinDimension
          - `id` string, required — Unique identifier for the custom dimension
          - `name` string, required — Display name for the custom dimension
          - `table` string, required — Table this custom dimension belongs to
          - `type` 'bin', required
          - `dimensionId` string, required
          - `binType` 'fixed_number', required
          - `binNumber` number, double, required
        - FixedWidthBinDimension
          - `id` string, required — Unique identifier for the custom dimension
          - `name` string, required — Display name for the custom dimension
          - `table` string, required — Table this custom dimension belongs to
          - `type` 'bin', required
          - `dimensionId` string, required
          - `binType` 'fixed_width', required
          - `binWidth` number, double, required
        - CustomRangeBinDimension
          - `id` string, required — Unique identifier for the custom dimension
          - `name` string, required — Display name for the custom dimension
          - `table` string, required — Table this custom dimension belongs to
          - `type` 'bin', required
          - `dimensionId` string, required
          - `binType` 'custom_range', required
          - `customRange` BinRange[], required
            - `to` number, double — End value for this bin range (undefined for the last range)
            - `from` number, double — Start value for this bin range (undefined for the first range)
        - CustomGroupBinDimension
          - `id` string, required — Unique identifier for the custom dimension
          - `name` string, required — Display name for the custom dimension
          - `table` string, required — Table this custom dimension belongs to
          - `type` 'bin', required
          - `dimensionId` string, required
          - `binType` 'custom_group', required
          - `customGroups` BinGroup[], required
            - `values` GroupValueRule[], required — Rules that match values into this group
              - …
            - `name` string, required — Display name for this group (e.g. "North America")
      - CustomSqlDimension
        - `id` string, required — Unique identifier for the custom dimension
        - `name` string, required — Display name for the custom dimension
        - `table` string, required — Table this custom dimension belongs to
        - `type` 'sql', required
        - `sql` string, required — SQL expression for the custom dimension
        - `dimensionType` 'string' | 'number' | 'timestamp' | 'date' | 'boolean', required

## Response `200`

Success

- object
  - `results` PullRequestCreated, required
    - `prUrl` string, required
    - `prTitle` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

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