---
title: "Update your own user record"
method: PUT
path: "/api/v1/users/{id}"
tags: ["Users"]
---

# Update your own user record

`PUT /api/v1/users/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- User
  - `email` string, email, required — The user's email address, also their login identifier.
  - `email_settings` EmailSettings — Per-user toggles for the user-pausable email categories. Each field maps 1:1 to a [`PausableCategory`]; required emails are never gated here. Stored as a JSONB blob, so new categories are added as new fields rather than via migration. New fields carry `#[serde(default = "default_true")]` so a category is opted in by default if its key is absent from the stored JSON.
    - `daemon_alerts` boolean — Send an alert when a daemon stops reporting.
    - `discovery_digest` boolean, required — Send a periodic summary of what discovery found.
    - `product_onboarding` boolean — Send getting-started guidance.
    - `trial_and_usage` boolean — Send trial reminders and plan-usage warnings.
  - `email_verified` boolean — Whether the user has verified their email address
  - `has_password` boolean — Whether the user has a password set — computed from password_hash, never stored in DB
  - `network_ids` string[], required — The networks this entity applies to.
  - `oidc_linked_at` string, date-time, nullable — When the account was linked to the identity provider.
  - `oidc_provider` string, nullable — Slug of the identity provider this account signs in through, when linked.
  - `organization_id` string, uuid, required — The organization that owns this record.
  - `permissions` 'Owner' | 'Admin' | 'Member' | 'Viewer', required
  - `terms_accepted_at` string, date-time, nullable — When the user accepted the terms of service.
  - `created_at` string, date-time, required — When this record was first created.
  - `id` string, uuid, required — Server-assigned unique identifier.
  - `updated_at` string, date-time, required — When this record was last modified.

## Response `200`

User updated

- ApiResponseUser
  - `data` object — The result payload. Omitted on failure.
    - `email` string, email, required — The user's email address, also their login identifier.
    - `email_settings` EmailSettings — Per-user toggles for the user-pausable email categories. Each field maps 1:1 to a [`PausableCategory`]; required emails are never gated here. Stored as a JSONB blob, so new categories are added as new fields rather than via migration. New fields carry `#[serde(default = "default_true")]` so a category is opted in by default if its key is absent from the stored JSON.
      - `daemon_alerts` boolean — Send an alert when a daemon stops reporting.
      - `discovery_digest` boolean, required — Send a periodic summary of what discovery found.
      - `product_onboarding` boolean — Send getting-started guidance.
      - `trial_and_usage` boolean — Send trial reminders and plan-usage warnings.
    - `email_verified` boolean — Whether the user has verified their email address
    - `has_password` boolean — Whether the user has a password set — computed from password_hash, never stored in DB
    - `network_ids` string[], required — The networks this entity applies to.
    - `oidc_linked_at` string, date-time, nullable — When the account was linked to the identity provider.
    - `oidc_provider` string, nullable — Slug of the identity provider this account signs in through, when linked.
    - `organization_id` string, uuid, required — The organization that owns this record.
    - `permissions` 'Owner' | 'Admin' | 'Member' | 'Viewer', required
    - `terms_accepted_at` string, date-time, nullable — When the user accepted the terms of service.
    - `created_at` string, date-time, required — When this record was first created.
    - `id` string, uuid, required — Server-assigned unique identifier.
    - `updated_at` string, date-time, required — When this record was last modified.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `403` — Cannot update another user's record
- `404` — User not found

## Changes

- **2026-07-29** `198b17140a11` — 1 info
  - api tag `internal` removed
- **2026-07-29** `51af15be596e` — 1 breaking
  - the `allOf[#/components/schemas/UserBase]/email` request property type/format changed from `string`/`` to `string`/`email`
- **2026-06-18** `76dd60a871e6` — 6 info
  - added the new optional request property `allOf[#/components/schemas/UserBase]/email_settings/daemon_alerts`
  - added the new optional request property `allOf[#/components/schemas/UserBase]/email_settings/product_onboarding`
  - added the new optional request property `allOf[#/components/schemas/UserBase]/email_settings/trial_and_usage`
  - added the optional property `data/allOf[#/components/schemas/UserBase]/email_settings/daemon_alerts` to the response with the `200` status
  - …2 more
- **2026-06-11** `aac398d6764d` — 2 info
  - added the new optional request property `allOf[#/components/schemas/UserBase]/email_settings`
  - added the optional property `data/allOf[#/components/schemas/UserBase]/email_settings` to the response with the `200` status
- **2026-06-11** `c7bad4e3d772` — 2 warning
  - removed the request property `allOf[#/components/schemas/UserBase]/email_settings`
  - removed the optional property `data/allOf[#/components/schemas/UserBase]/email_settings` from the response with the `200` status

[Full history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/users/:id/put.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/d061209476f3/schema)
