---
title: "Update a Custom Attribute"
method: PATCH
path: "/api/v2/custom-attributes/{id}"
tags: ["Custom Attributes"]
---

# Update a Custom Attribute

`PATCH /api/v2/custom-attributes/{id}`

This endpoint updates the specified custom attribute for the current organization. <h3>Required Scope</h3>`custom_attribute:write`

## Path parameters

- `id` string, required

## Request body

- CustomattributesIdBody
  - `data` Apiv2customattributesidData
    - `type` string, nullable
    - `attributes` Apiv2customattributesidDataAttributes
      - `name` string — The name of the custom attribute.
      - `is-visible-in-ui` boolean — Indicates if the custom attribute is visible in the user interface of the LXP. For example, user interface dropdowns for Business Rules or Segments, or Engage/reports.

## Response `201`

Success

- CustomAttributeDetail
  - `data` CustomAttributeDetailData
    - `type` string, nullable
    - `id` string — The unique id of the custom attribute.
    - `attributes` CustomAttributeDetailDataAttributes
      - `name` string — The name of the custom attribute.
      - `data-type` string — The data type of the attribute values to be associated with users. Options include `Bool`, `String`, `Number`, and `DateTime`.
      - `is-visibile-in-ui` boolean — Whether the custom attribute is visible in the UI.

---

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