---
title: "Create or replace a feature"
method: PUT
path: "/layers/{layerId}/features/{featureId}"
tags: ["Write Features"]
---

# Create or replace a feature

`PUT /layers/{layerId}/features/{featureId}`

Creates or replaces a feature in the layer.

## Path parameters

- `layerId` string, required
- `featureId` string, required

## Query parameters

- `versionRef` string

## Response `200`

A feature response.

## Other responses

- `400` — Malformed or Bad Request.
- `401` — Unauthorized to perform the request.
- `403` — Forbidden request. Insufficient rights to perform the request.
- `409` — An error response which indicates a conflict.
- `413` — Request entity too large.
- `513` — Response payload too large.

---

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