---
title: "Pause or resume a proxy"
method: PATCH
path: "/v1/proxies/{id}"
tags: ["Proxies"]
---

# Pause or resume a proxy

`PATCH /v1/proxies/{id}`

## Request

- Base URL: `https://api.feelingsurf.fr`
- URL: `https://api.feelingsurf.fr/v1/proxies/{id}`
- Auth: HTTP bearer

Only `enabled` can change. Pausing or resuming clears `last_error` and its error history, and a resumed proxy is checked again at once, so this also brings back a proxy that was switched off after failing. To change the host, port or credentials, delete the proxy and add it again.

## Path parameters

- `id` integer, required

## Request body

- ProxyUpdate
  - `enabled` boolean, required: False pauses the proxy, true resumes it.

## Response `200`

The updated proxy.

- Proxy: A proxy FeelingSurfViewer can surf through. Its password is never returned.
  - `id` integer: Unique identifier.
  - `type` 'http' | 'https' | 'socks5': The proxy protocol.
  - `host` string: The proxy's public IP address.
  - `port` integer: The proxy's port.
  - `username` string, nullable: The username sent to the proxy, or null.
  - `has_password` boolean: Whether a password is stored for the proxy.
  - `enabled` boolean: False when you paused the proxy, or when it was switched off after failing (see `last_error`).
  - `proven` boolean: Whether a check through FeelingSurfViewer has confirmed the proxy works at least once. Sessions never go through an unproven proxy, but a proven one can still sit unused, for instance while `unanswered` is true or shortly after an error.
  - `unanswered` boolean: The proxy failed its latest check and is set aside until a new check succeeds.
  - `visits` integer: Visits made through the proxy.
  - `credits_earnt` number, float: Credits earned through the proxy.
  - `last_used_at` string, date-time, nullable: When a visit last went through the proxy (UTC), or null.
  - `last_error` string, nullable: The latest error code for the proxy, e.g. `ERR_PROXY_CONNECTION_FAILED`, or null.
  - `last_error_at` string, date-time, nullable: When `last_error` happened (UTC), or null.
  - `created_at` string, date-time: When the proxy was added (UTC).

## Other responses

- `400`: The request body was missing or not a JSON object.
- `401`: Missing or invalid API key.
- `403`: The request is not allowed. A banned or disabled account is rejected with `forbidden`; a site setting your plan does not include is rejected with `premium_required`.
- `404`: Resource not found (or not owned by the caller).
- `422`: The request body failed validation.
- `429`: Too many requests — the per-account, per-minute rate limit was exceeded. Wait the number of seconds given in the `Retry-After` response header, then retry.

---

[API](https://skmtc.dev/feelingsurf/apis/feelingsurf-api.md) · [All operations](https://skmtc.dev/feelingsurf/apis/feelingsurf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/feelingsurf/apis/feelingsurf-api/revisions/8b09d26880d6?raw)
