---
title: "Update an attribute definition"
method: PATCH
path: "/v1/objects/{slug}/attributes/{attr_id}"
tags: ["Schema"]
---

# Update an attribute definition

`PATCH /v1/objects/{slug}/attributes/{attr_id}`

## Request

- Base URL: `https://app.nex.ai/api/developers`
- URL: `https://app.nex.ai/api/developers/v1/objects/{slug}/attributes/{attr_id}`
- Auth: API key in header `Authorization`

Updates properties of an existing attribute definition

## Path parameters

- `slug` string, required
- `attr_id` string, required

## Request body

- DeveloperUpdateAttributeDefinitionRequest
  - `name` string: New display name
  - `description` string: New description
  - `options` DeveloperUpdateAttributeOptionsRequest
    - `is_required` boolean
    - `use_raw_format` boolean
    - `is_whole_number` boolean
    - `select_options` DeveloperCreateSelectOptionRequest[]: Updated select options. Include id to update existing, omit id to create new.
      - `id` string: Option ID (optional on create, auto-generated if omitted)
      - `name` string, required: Option display label

## Response `200`

Updated attribute definition

- DeveloperAttributeDefinitionResponse
  - `description` string
  - `id` string
  - `name` string
  - `options` DeveloperAttributeOptionsResponse
    - `is_multi_value` boolean
    - `is_required` boolean
    - `is_unique` boolean
    - `is_whole_number` boolean
    - `select_options` DeveloperSelectOptionResponse[]
      - `id` string
      - `name` string
    - `use_raw_format` boolean
  - `slug` string
  - `type` string

## Other responses

- `400`: Bad request - Invalid data
- `401`: Unauthorized - Invalid or missing API key
- `404`: Object or attribute not found
- `500`: Internal server error

## Changes

- **2026-02-17** `b05d8cb8cf43`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nex/apis/nex-developer-api/changes/v1/objects/:slug/attributes/:attr_id/patch.md)

---

[API](https://skmtc.dev/nex/apis/nex-developer-api.md) - [All operations](https://skmtc.dev/nex/apis/nex-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nex/apis/nex-developer-api/revisions/51003af13108?raw)
