---
title: "Create user attribute"
method: POST
path: "/v1/user-attributes"
tags: ["User Attributes"]
---

# Create user attribute

`POST /v1/user-attributes`

## Request body

- UserAttributeCreateInput
  - `defaultValue` string, nullable
  - `description` string, nullable
  - `displayName` string, nullable
  - `name` string, required
  - `type` 'string' | 'number' | 'boolean' | 'string_array' | 'number_array', required

## Response `200`

- UserAttribute
  - `defaultValue` string, nullable
  - `description` string, nullable
  - `displayName` string, nullable
  - `id` integer, required
  - `name` string, required
  - `type` 'string' | 'number' | 'boolean' | 'string_array' | 'number_array', required

## Changes

- **2026-07-20** `df6e5a12170a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/v1/user-attributes/post.md)

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/df6e5a12170a/schema)
