---
title: "PATCH /users/self"
method: PATCH
path: "/users/self"
tags: ["Users"]
---

# PATCH /users/self

`PATCH /users/self`

This endpoint allows the users to update current user's data.

## Request body

- ApiUserSelfUpdate
  - `firstName` string
  - `lastName` string
  - `email` string, email — This email is used for login.
  - `contactDetails` ContactDetails
    - `alternateEmail` string, email — This email is used sending notifications from user account.
    - `phone` string
  - `support` Support
    - `pin` string — Six digit string that signifies a support pin. Support can use this pin to login to user account.
  - `language` string
  - `timeZone` TimeZone — Represents a time zone that is supported by the Eagle Eye Networks API. Designed as an object to allow future extension by adding new fields.
    - `name` string — Name of the time zone in "tz database" format of "Area/Location" us as identifier of the time zone in the EEN API.
  - `layoutSettings` LayoutSettings
    - `rotationInterval` integer, required — Layout rotation internal in seconds after which current layout is switched to next one in the below list.
    - `rotationOrder` string[], required — Ordered list of layout IDs that user has access to, which will be displayed in order after rotationInterval. This array may contain deleted layouts or those to which the user lost access. They need to be filtered out on the client side.
  - `previewSettings` PreviewSettings
    - `showMotionBoxes` boolean — Indicates whether motion boxes should be shown
    - `showAnalytics` boolean — Indicates whether additional analytics should be shown
    - `showPluginExtensions` boolean — Indicates whether to show custom annotations for third party applications.
  - `timeSettings` TimeSettings
    - `showMilliseconds` boolean — Select to display milliseconds when playing video.
    - `format` '24h' | '12h' — Select between 12 and 24 hour mode for the display of time.

## Response `204`

User Updated

## Other responses

- `400` — The supplied object is invalid. Error detail will contain the validation error.
- `401` — You are not authenticated. Please authenticate and try again.
- `403` — You have no permission to access the specified resource.
- `404` — Referenced resource could not be found.
- `500` — Something went wrong in the server. Please try again.

---

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