# Update a custom object field

> Update a specific custom object field.

PATCH

/custom-objects/{custom\_object\_api\_name}/fields/{field\_api\_name}/

Updates a specific field on a custom object by ID.

#### Helpful resources

-   [Create and manage custom objects](https://developer.rippling.com/documentation/rest-api/guides/customobjects)
-   [Get started with custom objects](https://developer.rippling.com/documentation/rippling-platform/custom-objects/getting-started)
-   [Overview of basic fields in custom objects](https://help.rippling.com/article?articleId=836826321164)
-   [Overview of summary fields in custom objects](https://help.rippling.com/article?articleId=22314896507)

**Note:** Scopes are mutually exclusive and represent increasing levels of access. Only one of the scopes listed below is required to call this endpoint.

### Required Scopes

-   custom-objects.read-write
    
-   custom-objects.read-write.owner
    

### Request

Path Parameters

**custom\_object\_api\_name** string required

The API name of the custom object.

**field\_api\_name** string required

The API name of the custom object field.

-   application/json

**Body**

**name** string

The name of the field.

**description** string

A description of the field.

**data\_type** object

The data type configuration for the field.

**num\_of\_decimal\_places** integer

Configured fractional scale for NUMBER, PERCENTAGE, and CURRENCY fields. Availability above the legacy per-type limit is capability-gated.

**property name\*** object

**required** boolean

Whether this field is required.

**rql\_definition** object

The RQL definition for computed fields.

**is\_unique** boolean

Whether field values must be unique.

**formula\_attr\_metas** object

Metadata for formula attributes.

**section** object

The section configuration for the field.

**enable\_history** boolean

Whether to track history for this field.

**derived\_field\_formula** string

The formula for derived fields.

**name\_field\_details** object

Configuration for name field display.

## Responses

-   200
-   400
-   401
-   403
-   404

Successful response

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**id** string required

Identifier field

**created\_at** string required

Record creation date

**updated\_at** string required

Record update date

**name** string required

The name of the custom object field

**custom\_object** string required

The custom object which the field belongs to

**description** string

The description of the custom object field

**api\_name** string required

The api name of the custom object field

**data\_type** object required

The data type configuration for the field.

**num\_of\_decimal\_places** integer

Configured fractional scale for NUMBER, PERCENTAGE, and CURRENCY fields. Availability above the legacy per-type limit is capability-gated.

**property name\*** object

**is\_unique** boolean required

This field specifies whether a particular column value has unique values

**is\_immutable** boolean required

whether the field is imuatable

**is\_standard** boolean required

whether the field is standard field

**managed\_package\_install\_id** string

The id of the package which the custom object field belongs to

**enable\_history** boolean required

whether the history is enable for the field

```json
{
  "id": "string",
  "created_at": "string",
  "updated_at": "string",
  "name": "string",
  "custom_object": "string",
  "description": "string",
  "api_name": "string",
  "data_type": {
    "num_of_decimal_places": 0
  },
  "is_unique": false,
  "is_immutable": false,
  "is_standard": false,
  "managed_package_install_id": "string",
  "enable_history": false
}
```

The request failed validation. The response body describes the error.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

Authentication is required or the supplied credentials are invalid.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

-   Matches one or more of these formats:
    
    1.  **Format 1**
        
        **ok** boolean required
        
        Whether the request succeeded. Always false for an authentication error.
        
        **Possible values:** \[false\]
        
        **error** string required
        
        A human-readable explanation of why authentication failed.
        
    2.  **Format 2**
        
        **detail** string required
        
        A human-readable explanation of the authentication error.
        

**Format 1**

```json
{
  "ok": false,
  "error": "Incorrect authentication credentials."
}
```

**Format 2**

```json
{
  "detail": "string"
}
```

The caller is not authorized to perform this action.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

The requested resource was not found.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

Source: https://developer.rippling.com/documentation/rest-api/reference/update-custom-objects-custom-object-api-name-fields

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
