---
name: "up.Request.prototype.layer"
area: "API"
kind: "Property"
parent: "up.Request class"
url: "https://unpoly.com/api/up.Request.prototype.layer"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Request class](https://unpoly.com/api/up.Request.md)</nav>

# up.Request.prototype.layer

The [layer](https://unpoly.com/api/up.layer.md) targeted by this request.

Setting the `{ layer }` property will automatically derive `{ context }` and `{ mode }` properties.

When this request will [open a new overlay](https://unpoly.com/learn/opening-overlays.md), the string `"new"` is returned.

To prevent memory leaks, this property is removed shortly after the response is received.

---

## Value {#value}

### layer {#layer}

Type: [up.Layer](https://unpoly.com/api/up.Layer.md) | string

