---
title: "Publishes a data blob or copies an existing blob."
method: PUT
path: "/layers/{layerId}/keys/{key}"
tags: ["by-key"]
---

# Publishes a data blob or copies an existing blob.

`PUT /layers/{layerId}/keys/{key}`

Persists the data blob up to 192 MB. When the operation completes successfully, there is no guarantee that the data blob will be immediately available, although in most cases, it will be. To check if the data blob is available, use the ´HEAD´ method. The maximum key length is 450 characters.

## Path parameters

- `layerId` string, required
- `key` string, required

## Query parameters

- `source` string

## Headers

- `Content-Length` integer
- `Content-Type` string
- `Content-Encoding` string
- `X-HERE-Digest` string

## Response `200`

OK

## Other responses

- `400` — User Error - Invalid input is provided
- `401` — Unauthorized - the request didn't provide correct authentication details
- `403` — Forbidden - the specific account doesn't have correct privileges to perform the operation
- `404` — Not Found - the specified resource was not found
- `413` — Request entity too large - request made from a client is too large to be processed by the server.
- `500` — Server unavailable or internal server error
- `502` — Server unavailable or internal server error
- `503` — Server unavailable or internal server error
- `504` — Server unavailable or internal server error

---

[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)
