---
title: "Save a user"
method: PUT
path: "/users"
---

# Save a user

`PUT /users`

Creates or updates a user with the provided details. The user will be associated with the project specified in the request context.

## Request body

- User
  - `created_at` string, date-time, nullable — The timestamp when the user was created.
  - `custom_attributes` object, nullable — Arbitrary custom values stored on the user.
  - `email` string, nullable — The primary email address of the user.
  - `external_id` string, nullable — The user identifier from an external system.
  - `first_name` string, nullable — The first name of the user.
  - `id` string, uuid — The unique identifier for the user.
  - `last_name` string, nullable — The last name of the user.
  - `last_notified_at` string, date-time, nullable — The timestamp when the user last received a notification.
  - `last_seen_at` string, date-time, nullable — The timestamp when the user last opened the inbox.
  - `updated_at` string, date-time, nullable — The timestamp when the user was last updated.

## Response `200`

OK

- User
  - `created_at` string, date-time, nullable — The timestamp when the user was created.
  - `custom_attributes` object, nullable — Arbitrary custom values stored on the user.
  - `email` string, nullable — The primary email address of the user.
  - `external_id` string, nullable — The user identifier from an external system.
  - `first_name` string, nullable — The first name of the user.
  - `id` string, uuid — The unique identifier for the user.
  - `last_name` string, nullable — The last name of the user.
  - `last_notified_at` string, date-time, nullable — The timestamp when the user last received a notification.
  - `last_seen_at` string, date-time, nullable — The timestamp when the user last opened the inbox.
  - `updated_at` string, date-time, nullable — The timestamp when the user was last updated.

---

[API](https://skmtc.net/magicbell/apis/magicbell-api.md) · [All operations](https://skmtc.net/magicbell/apis/magicbell-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magicbell/magicbell-api/revisions/8b99dca11019/schema)
