API ReferenceSub-users

Update a sub-user

Change limits or networks, disable access, or rotate the password.

PATCHhttps://api.riftip.com/v1/sub-users/{id}

Only the fields you send are changed.

#Path parameters

ParameterTypeDescription
idstring, requiredThe sub-user's ID, e.g. su_8f2k1d.

#Body parameters

ParameterTypeDescription
statusstringactive or disabled. Disabled sub-users' traffic is rejected with 407.
traffic_limit_gbnumber | nullNew cap, or null to remove it.
networksstring[]Replace the allowed networks.
rotate_passwordbooleantrue issues a new password and returns it once.

#Request

curl -X PATCH https://api.riftip.com/v1/sub-users/su_8f2k1d \
  -H "Authorization: Bearer $RIFTIP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "traffic_limit_gb": 250, "rotate_password": true }'

#Response

JSON
{
  "id": "su_8f2k1d",
  "username": "acme-scraper",
  "password": "Qe4n-77Ws-c2Hd",
  "status": "active",
  "traffic_limit_bytes": 268435456000,
  "traffic_used_bytes": 5368709120,
  "updated_at": "2026-10-20T09:42:00Z"
}

password is only present when rotate_password was true.