---
title: "Updates index layer partitions"
method: PUT
path: "/layers/{layerID}"
tags: ["index"]
---

# Updates index layer partitions

`PUT /layers/{layerID}`

Modifies partitions in an index layer.

## Path parameters

- `layerID` string, required

## Request body

- UpdateIndexRequest
  - `additions` Index[]
    - `checksum` string, byte — The checksum of the data being indexed by this index record.
    - `crc` string, byte — The cyclic redundancy check (CRC) of the data being indexed by this index record.
    - `fields` object — The indexing attributes for the data being indexed by this index record. The attributes must match the indexing attributes defined for the index layer. To get or set the index attributes for an index layer, use the `config` API.
    - `id` string, [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} — The unique identifier (UUID) of the data being indexed by this index record.
    - `metadata` object — User-defined fields that can store extra metadata about this index record.
    - `size` integer — The size of the data being indexed by this index record.
  - `deleteBlob` boolean — Indicates if the blobs listed in the removals section shall be deleted. Please note the blobs deletion is not instant but deferred in time.
  - `removals` string[]

## Response `200`

OK - The index was successfully updated.

## Other responses

- `401` — Unauthorized - The credentials provided do not authorize the user to perform this operation.
- `403` — Forbidden - The user is not authorized to update the catalog and layer provided.
- `404` — Not Found - A layer with the given name does not exist.
- `409` — Conflict - An index with the given ID already exists

---

[API](https://skmtc.dev/here/apis/query-api-v1.md) · [All operations](https://skmtc.dev/here/apis/query-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/query-api-v1/revisions/30e5d2645407/schema)
