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

# Update proxy credentials

> Replace IP whitelist and/or login/password pairs on a mobile rotating proxy.

Replaces the credential set on the upstream pool. You can update the whitelist of source IPs, the list of login/password pairs, or both in one call.

At least one of `ips` or `passwords` must be provided. Each list is capped at 20 entries by the upstream pool.

## Path parameters

<ParamField path="order_id" type="string" required>
  UUID of the order backing the mobile rotating proxy.
</ParamField>

## Request body

<ParamField body="ips" type="array">
  Allowed source IPs for IP-whitelist authentication. Omit to leave the existing list unchanged.
</ParamField>

<ParamField body="passwords" type="array">
  Login/password pairs, each shaped `{"login": "...", "password": "..."}`. Omit to leave the existing list unchanged.
</ParamField>

## Response

Live snapshot of the mobile rotating proxy with the updated credentials applied. Same shape as the mobile branch of [Get order](/api/orders/get-order#response-mobile).

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://api.proxyjam.com/public/v1/orders/997b4450-e7ae-4ad9-8a25-996e582049c9/credentials" \
    -H "X-API-Key: pj_AbCdEf..." \
    -H "Content-Type: application/json" \
    -d '{
      "ips": ["203.0.113.10", "203.0.113.11"],
      "passwords": [
        {"login": "scrape_bot", "password": "s3cret"}
      ]
    }'
  ```

  ```python Python theme={null}
  from proxyjam import ProxyJamClient

  with ProxyJamClient(api_key="pj_live_...") as proxyjam:
      proxy = proxyjam.proxies.rotate_credentials(
          "997b4450-e7ae-4ad9-8a25-996e582049c9",
          ips=["203.0.113.10", "203.0.113.11"],
          passwords=[{"login": "scrape_bot", "password": "s3cret"}],
      )
      print(proxy.username, proxy.whitelisted_ips)
  ```

  ```json Response theme={null}
  {
    "type": "mobile",
    "id": "997b4450-e7ae-4ad9-8a25-996e582049c9",
    "status": "active",
    "auto_renew": true,
    "expires_at": "2026-12-31T23:59:59Z",
    "host": "gw.proxyjam.com",
    "port": 24534,
    "username": "scrape_bot",
    "password": "s3cret",
    "current_ip": "203.0.113.99",
    "signature": "android",
    "tags": ["scrape"],
    "whitelisted_ips": ["203.0.113.10", "203.0.113.11"],
    "order_status": "provisioned",
    "proxy_type": "mobile",
    "ip_version": "IPv4",
    "protocol": "HTTP",
    "country": "US",
    "city": null,
    "isp": "T-Mobile",
    "period_days": 1,
    "bandwidth_gb": null,
    "quantity": 1,
    "total_usd": 1.5,
    "total_amount": "1.50",
    "currency": "USD",
    "promo_code_id": null,
    "discount_usd": null,
    "created_at": "2026-12-30T23:59:59Z",
    "updated_at": "2026-12-31T00:15:01Z",
    "payment_intent_id": null,
    "previous_expires_at": null
  }
  ```
</CodeGroup>
