---
title: "Stops a customer's private feed of a blog, a podcast or an event."
---

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

`POST /v1/stores/{store}/products/{product}/feeds/{feed}/revoke`

## Authentication

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

## Path parameters

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

## Header parameters

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

## Example request

```json
{}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/feeds/<feed>/revoke' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/feeds/<feed>/revoke';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({})
};

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>/feeds/<feed>/revoke"

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

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

print(response.text)
```

## Responses

### 200

Stops a customer's private feed of a blog, a podcast or an event.

#### Example

```json
{
  "id": "string",
  "customer_id": "string",
  "product_id": "string",
  "product": {
    "id": "string",
    "slug": "string",
    "path": "string",
    "url": "string",
    "title": "string",
    "category": "string",
    "deleted": true
  },
  "readers": 0,
  "reader_limit": 0,
  "reader_limit_set": true,
  "created_at": "string",
  "revoked_at": "string",
  "revoked_reason": "string"
}
```

- `id` (`revokeFeed.response.200.id`; string, required)
- `customer_id` (`revokeFeed.response.200.customer_id`; string, required)
- `product_id` (`revokeFeed.response.200.product_id`; string, required)
- `product` (`revokeFeed.response.200.product`; any of, required)
  - any of: `object`, `null`
- `readers` (`revokeFeed.response.200.readers`; number, required) — Readers it served in the last 30 days, each shared fetcher for the people it reports.
- `reader_limit` (`revokeFeed.response.200.reader_limit`; number, required) — Readers it serves in 30 days before it moves to a new URL.
- `reader_limit_set` (`revokeFeed.response.200.reader_limit_set`; boolean, required) — Whether the limit is the merchant's own rather than the default.
- `created_at` (`revokeFeed.response.200.created_at`; any of, required)
  - any of: `string`, `null`
- `revoked_at` (`revokeFeed.response.200.revoked_at`; any of, required)
  - any of: `string`, `null`
- `revoked_reason` (`revokeFeed.response.200.revoked_reason`; any of, required) — Why it stopped: a new URL replaced it, too many readers shared it, its customer or the merchant revoked it, or the product turned private feeds off.
  - any of: `string`, `null`

### 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` (`revokeFeed.response.default.type`; string, required)
  - format `uri`
- `title` (`revokeFeed.response.default.title`; string, required)
- `status` (`revokeFeed.response.default.status`; integer, required)
- `detail` (`revokeFeed.response.default.detail`; string, required)
- `code` (`revokeFeed.response.default.code`; string, optional)
- `context` (`revokeFeed.response.default.context`; object, optional)
- `reached_core` (`revokeFeed.response.default.reached_core`; boolean, optional)
- `core_answer` (`revokeFeed.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/revoke-feed/index.md
