# Update a custom object record

> Update a specific custom object record. A successful write returns the full record when permitted by read access, or an ID-only receipt otherwise.

PATCH

/custom-objects/{custom\_object\_api\_name}/records/{codr\_id}/

Updates an existing record in 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)
-   [Guide to data modeling with custom objects](https://help.rippling.com/article?articleId=919163979688)

**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-object-records.read-write
    
-   custom-objects.read-write.owner
    

### Request

Path Parameters

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

The API name of the custom object.

**codr\_id** string required

The unique identifier of the custom object data row.

-   application/json

**Body**

**property name\*** object

## Responses

-   200
-   400
-   401
-   403
-   404

Successful response

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**data** object

-   Matches exactly one of these formats:
    
    1.  **CustomObjectDataRow**
        
        **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 datarow
        
        **external\_id** string
        
        The external id of the custom object datarow
        
        **created\_by** object
        
        **id** string
        
        The unique identifier of the role.
        
        **display\_value** string
        
        The display name of the role.
        
        **image** string
        
        The URL of the role's profile image.
        
        **last\_modified\_by** object
        
        **id** string
        
        The unique identifier of the role.
        
        **display\_value** string
        
        The display name of the role.
        
        **image** string
        
        The URL of the role's profile image.
        
        **owner\_role** object
        
        **id** string
        
        The unique identifier of the role.
        
        **display\_value** string
        
        The display name of the role.
        
        **image** string
        
        The URL of the role's profile image.
        
        **system\_updated\_at** string
        
        The timestamp when the record was last updated by the system.
        
        **property name\*** object
        
    2.  **Format 2**
        
        A write receipt returned when the record is not visible to the caller's read permissions.
        
        **id** string required
        
        The identifier of the successfully written record.
        

```json
{
  "data": {
    "id": "string",
    "created_at": "string",
    "updated_at": "string",
    "name": "string",
    "external_id": "string",
    "created_by": {
      "id": "string",
      "display_value": "string",
      "image": "string"
    },
    "last_modified_by": {
      "id": "string",
      "display_value": "string",
      "image": "string"
    },
    "owner_role": {
      "id": "string",
      "display_value": "string",
      "image": "string"
    },
    "system_updated_at": "string"
  }
}
```

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-records

> 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.
