---
title: "Session Cookies Set"
method: POST
path: "/sessions/{session_id}/cookies"
tags: ["sessions"]
---

# Session Cookies Set

`POST /sessions/{session_id}/cookies`

## Path parameters

- `session_id` string, required

## Query parameters

- `update_metadata` boolean

## Headers

- `x-notte-request-origin` string, nullable
- `x-notte-sdk-version` string, nullable

## Request body

- BodySessionCookiesSetSessionsSessionIdCookiesPost
  - `cookies` Cookie[], required
    - `name` string, required
    - `value` string, required
    - `domain` string, required
    - `path` string, required
    - `httpOnly` boolean, required
    - `expirationDate` number, nullable
    - `hostOnly` boolean, nullable
    - `sameSite` 'Lax' | 'None' | 'Strict', nullable
    - `secure` boolean, nullable
    - `session` boolean, nullable
    - `storeId` string, nullable
    - `expires` number, nullable
    - `partitionKey` string, nullable

## Response `200`

Successful Response

- ExecutionResponse
  - `success` boolean, required — Whether the operation was successful
  - `message` string, required — A message describing the operation

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/notte/apis/notte-api.md) · [All operations](https://skmtc.net/notte/apis/notte-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notte/notte-api/versions/8dda4e3d49cc/schema)
