---
title: "Update multiple accounts"
method: PATCH
path: "/accounts"
tags: ["accounts"]
---

# Update multiple accounts

`PATCH /accounts`

Updates multiple accounts in a single request. Only provided fields are modified.

**Rate limit:** 20 requests per minute

## Request body

- UpdateAccountsRequest
  - `account_ids` string[], required — The account IDs to update. The number of accounts to update must be between 1 and 100.
  - `account_type` string — The type of the account. Can only be changed to "customer" or "partner".
  - `custom_fields` CustomFieldValue[] — An array of custom fields to be updated on the accounts.
    - `slug` string — The slug of the custom field.
    - `value` string — The value of the custom field. Only to be used for single-valued custom fields. If unset, the custom field will be unset. If the custom field is a select field, the value must be the select option slug, which you can find from the GET /custom-fields endpoint. If the custom field is a relationship field, the value must be the related object ID.
    - `values` string[] — The values of the custom field. Only to be used for multi-valued custom fields (ex. multiselect). If unset, the custom field will be unset. If the custom field is a multiselect field, the values must be the select option slugs which you can find from the GET /custom-fields endpoint.
  - `owner_id` string — The ID of the new owner. If empty string is passed in, the owner will be removed.
  - `tags` string[] — An array of tags to be updated on the accounts.
  - `tags_apply_mode` string — The mode for applying tags. Valid values: "append_only", "remove_only", "replace". Defaults to "replace".

## Response `200`

- UpdateAccountsResponseBody
  - `request_id` string — The request ID for tracking.
  - `success` boolean — Whether the update was successfully initiated.

## Other responses

- `400` — The request was invalid or could not be completed.
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/484a11d5ddb2/schema)
