---
title: "Batch update location assets"
method: PATCH
path: "/api/v2/assets/locations/batch"
tags: ["Assets"]
---

# Batch update location assets

`PATCH /api/v2/assets/locations/batch`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/assets/locations/batch`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/assets/locations/batch/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update multiple location assets with a single field value change

## Request body

- JumpcloudHttpAssetsBatchUpdateLocationAssetsRequest: Request payload for batch updating multiple location assets with a single field value
  - `assetIds` string[], required: Array of location asset IDs to update
  - `fieldValue` JumpcloudHttpAssetsBatchUpdateFieldValue: Field value for batch updating assets
    - `label` string, required: The label of the field to update
    - `value` JumpcloudHttpAssetsBatchUpdateReference, required: Reference value for batch update operations
      - `id` string, required: The reference ID
      - `name` string: The reference display name
      - `type` 'user' | 'user_group' | 'location' | 'select' | 'device_group': The type of reference
  - `fields` object: Asset field values organized by field label to update

## Response `200`

Batch update completed

- JumpcloudHttpAssetsBatchUpdateLocationAssetsResponse: Response containing results of batch location asset update operation
  - `updatedAssetCount` integer, required: Number of assets successfully updated
  - `notUpdatedAssetCount` integer, required: Number of assets that could not be updated

## Other responses

- `400`: Bad request - invalid data
- `401`: Unauthorized - authentication required
- `default`: Generic error response

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
