API docs / API reference / Portal logins

Change a portal login

PATCH /v1/clients/{client_id}/users/{user_id}

A new password, a new email or status disabled signs the login out everywhere.

Path parameters

client_id required
string
—
user_id required
string
—

Body

name
string
—
email
string
—
password
string
—
access
object
What the login may do: audits none | view | run, links none | view | act, scans_per_month (0–1000), max_pages (10–5000). Default: view and view, 4 scans, 200 pages.
status
active | disabled
—

Request

curl -X PATCH "https://amarkos.com/api/v1/clients/{client_id}/users/{user_id}" \
  -H "Authorization: Bearer $AMARKOS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "access": {
      "links": "view"
    }
  }'

Response · 200

{
  "id": "cu_3c4d5e6f7a8b49c0d1e2f3a4b5c6d7e8",
  "client_id": "cl_8a1b2c3d4e5f40a1b2c3d4e5f6a7b8c9",
  "email": "dana@acme-tools.com",
  "name": "Dana Reed",
  "access": {
    "audits": "run",
    "links": "act",
    "scans_per_month": 4,
    "max_pages": 200
  },
  "status": "active",
  "last_login_at": null,
  "created_at": "2026-12-02T09:00:00Z"
}

← Give a client a portal login · Remove a portal login →