---
title: "Removes a product's entry section, its entries kept outside any section."
---

> 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 › entry

`POST /v1/stores/{store}/products/{product}/sections/remove`

## Authentication

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

## Path parameters

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

## Header parameters

- `Idempotency-Key` (`removeSection.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._

- `section` (`removeSection.section`; any of, optional)
  - any of: `string`, `null`
- `section_id` (`removeSection.section_id`; string, optional)
  - minLength 1; maxLength 64
- `into` (`removeSection.into`; any of, optional) — Where its entries go; absent for an empty chapter, refused once an entry took it.
  - any of: `string`, `null`

## Example request

```json
{
  "section": "string",
  "section_id": "string",
  "into": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/sections/remove' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "section": "string",
  "section_id": "string",
  "into": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/sections/remove';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({section: 'string', section_id: 'string', into: '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>/sections/remove"

payload = {
    "section": "string",
    "section_id": "string",
    "into": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Removes a product's entry section, its entries kept outside any section.

#### Example

```json
[
  {
    "id": "string",
    "product_id": "string",
    "slug": "string",
    "path": "string",
    "url": "string",
    "title": "string",
    "subtitle": "string",
    "section": "string",
    "author": {
      "kind": "member",
      "user": {
        "id": "string"
      }
    },
    "tags": [
      "string"
    ],
    "preview": "string",
    "position": 0,
    "status": "string",
    "unlisted": true,
    "published_at": "string",
    "unlisted_at": "string",
    "release": {
      "session": {
        "id": "string"
      },
      "anchor": "string",
      "offset_minutes": 0
    },
    "released_at": "string",
    "search": "string",
    "created_at": "string",
    "updated_at": "string",
    "settings": {
      "ai_generated": true,
      "property1": true,
      "property2": true
    },
    "metadata": {
      "property1": true,
      "property2": true
    }
  }
]
```

- `id` (`removeSection.response.200.id`; string, required)
- `product_id` (`removeSection.response.200.product_id`; string, required)
- `slug` (`removeSection.response.200.slug`; string, required)
- `path` (`removeSection.response.200.path`; string, required) — The storefront path.
- `url` (`removeSection.response.200.url`; any of, required) — The absolute URL on the store's verified hostname, or null before it has one.
  - any of: `string`, `null`
- `title` (`removeSection.response.200.title`; string, required)
- `subtitle` (`removeSection.response.200.subtitle`; any of, required)
  - any of: `string`, `null`
- `section` (`removeSection.response.200.section`; any of, required)
  - any of: `string`, `null`
- `author` (`removeSection.response.200.author`; any of, required) — Who signs it, or null when unsigned.
  - any of: `object`, `object`, `null`
- `tags` (`removeSection.response.200.tags`; array<string>, required)
- `preview` (`removeSection.response.200.preview`; any of, required) — The teaser, in the rich text format as stored.
  - any of: `string`, `null`
- `position` (`removeSection.response.200.position`; number, required)
- `status` (`removeSection.response.200.status`; string, required)
- `unlisted` (`removeSection.response.200.unlisted`; boolean, required)
- `published_at` (`removeSection.response.200.published_at`; any of, required)
  - any of: `string`, `null`
- `unlisted_at` (`removeSection.response.200.unlisted_at`; any of, required)
  - any of: `string`, `null`
- `release` (`removeSection.response.200.release`; any of, required) — When its content opens relative to one of its event's sessions, or null when it opens as published.
  - any of: `object`, `null`
- `released_at` (`removeSection.response.200.released_at`; any of, required) — Since when a write keeps its passed release open, so a later release no longer locks it; cleared with the release.
  - any of: `string`, `null`
- `search` (`removeSection.response.200.search`; any of, required)
  - any of: `string`, `null`
- `created_at` (`removeSection.response.200.created_at`; any of, required)
  - any of: `string`, `null`
- `updated_at` (`removeSection.response.200.updated_at`; any of, required)
  - any of: `string`, `null`
- `settings` (`removeSection.response.200.settings`; object, required)
  - `ai_generated` (`removeSection.response.200.settings.ai_generated`; boolean, optional) — The description was machine-written, which readers are told.
- `metadata` (`removeSection.response.200.metadata`; map<any of>, 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` (`removeSection.response.default.type`; string, required)
  - format `uri`
- `title` (`removeSection.response.default.title`; string, required)
- `status` (`removeSection.response.default.status`; integer, required)
- `detail` (`removeSection.response.default.detail`; string, required)
- `code` (`removeSection.response.default.code`; string, optional)
- `context` (`removeSection.response.default.context`; object, optional)
- `reached_core` (`removeSection.response.default.reached_core`; boolean, optional)
- `core_answer` (`removeSection.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/remove-section/index.md
