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

# Create user attribute

`POST /api/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

---

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