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

# PATCH /users/self

`PATCH /users/self`

## Request

- Base URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0`
- URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0/users/self`
- Auth: HTTP bearer

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
    - `timeZone` string: The timezone the user is in.
  - `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.dev/eagleeyenetworks/apis/user-accounts.md) - [All operations](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/revisions/e6bfa6544945?raw)
