# Bulk create or update custom object records

> Bulk create new custom object records or update existing records by external_id. Use stable, source-derived external IDs so retries resolve to the same records. Creating requires create access and updating requires update access. Successful writes return full records when permitted by read access, or ID-only receipts otherwise.

POST

/custom-objects/{custom\_object\_api\_name}/records/bulk/

Creates multiple custom object records in a single bulk request and returns their IDs and details.

#### 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:** There is a limit of 200 rows per request on the `rows_to_write` field.

### Required Scopes

-   custom-object-records.read-write
    
-   custom-object.read-write.owner
    

### Request

Path Parameters

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

The API name of the custom object.

-   application/json

**Body**

**rows\_to\_write** object\[\]

The list of records to create.

Array \[

**external\_id** string

A caller-provided identifier that creates a record when new and updates the existing record when reused.

**property name\*** object

\]

**all\_or\_nothing** boolean

If true, the entire operation fails if any record fails. If false, partial success is allowed.

## Responses

-   201
-   400
-   401
-   403

The records were written successfully.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**data** object\[\]

Array \[

-   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 lacks a create or update permission required by the batch.

Source: https://developer.rippling.com/documentation/rest-api/reference/bulk-create-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.
