---
title: "Moves an event session or changes its place."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › product

`PATCH /v1/stores/{store}/products/{product}/sessions/{session}`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `product:write`

## Path parameters

- `store` (`updateEventSession.path.store`; string, required) — The store's id.
- `product` (`updateEventSession.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1
- `session` (`updateEventSession.path.session`; string, required)
  - minLength 1

## Header parameters

- `Idempotency-Key` (`updateEventSession.header.Idempotency-Key`; string, optional) — Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.
  - minLength 1; maxLength 255; pattern `^[\x21-\x7E]+$`

## Request body

_Optional._

- `starts_at` (`updateEventSession.starts_at`; string, optional) — When it starts, an ISO 8601 timestamp.
  - pattern `^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$`
- `ends_at` (`updateEventSession.ends_at`; string, optional) — When it ends, after it starts, an ISO 8601 timestamp.
  - pattern `^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$`
- `time_zone` (`updateEventSession.time_zone`; string, optional) — The IANA time zone it is shown in, e.g. `Europe/Rome`.
  - minLength 1; maxLength 64
- `venue` (`updateEventSession.venue`; any of, optional) — Where it takes place in person, trimmed, with no line break or control character.
  - any of: `string`, `null`
- `online_label` (`updateEventSession.online_label`; any of, optional) — How it is joined online, e.g. `Zoom`: a label everyone sees, never a link, trimmed, with no line break or control character.
  - any of: `string`, `null`

## Example request

```json
{
  "starts_at": "string",
  "ends_at": "string",
  "time_zone": "string",
  "venue": "string",
  "online_label": "string"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/sessions/<session>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "starts_at": "string",
  "ends_at": "string",
  "time_zone": "string",
  "venue": "string",
  "online_label": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/sessions/<session>';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    starts_at: 'string',
    ends_at: 'string',
    time_zone: 'string',
    venue: 'string',
    online_label: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/sessions/<session>"

payload = {
    "starts_at": "string",
    "ends_at": "string",
    "time_zone": "string",
    "venue": "string",
    "online_label": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Moves an event session or changes its place.

#### Example

```json
{
  "id": "string",
  "product_id": "string",
  "starts_at": "string",
  "ends_at": "string",
  "time_zone": "string",
  "venue": "string",
  "online_label": "string",
  "created_at": "string",
  "updated_at": "string"
}
```

- `id` (`updateEventSession.response.200.id`; string, required)
- `product_id` (`updateEventSession.response.200.product_id`; string, required)
- `starts_at` (`updateEventSession.response.200.starts_at`; string, required)
- `ends_at` (`updateEventSession.response.200.ends_at`; string, required)
- `time_zone` (`updateEventSession.response.200.time_zone`; string, required) — An IANA time zone, e.g. `Europe/Rome`.
- `venue` (`updateEventSession.response.200.venue`; any of, required) — Where it takes place in person, or null for none.
  - any of: `string`, `null`
- `online_label` (`updateEventSession.response.200.online_label`; any of, required) — How it is joined online, e.g. `Zoom`, or null for none.
  - any of: `string`, `null`
- `created_at` (`updateEventSession.response.200.created_at`; string, required)
- `updated_at` (`updateEventSession.response.200.updated_at`; string, required)

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`updateEventSession.response.default.type`; string, required)
  - format `uri`
- `title` (`updateEventSession.response.default.title`; string, required)
- `status` (`updateEventSession.response.default.status`; integer, required)
- `detail` (`updateEventSession.response.default.detail`; string, required)
- `code` (`updateEventSession.response.default.code`; string, optional)
- `context` (`updateEventSession.response.default.context`; object, optional)
- `reached_core` (`updateEventSession.response.default.reached_core`; boolean, optional)
- `core_answer` (`updateEventSession.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/update-event-session/index.md
