---
title: "PUT /api/employees/{id}"
method: PUT
path: "/api/employees/{id}"
tags: ["api"]
---

# PUT /api/employees/{id}

`PUT /api/employees/{id}`

When the employee is updated, it is checked if the request
contains the field is_admin to false, it is checked that
at least one employee with the field is_admin to true exists
and if it does not, the field is_admin is not updated.

## Request body

- Employee
  - `id` string, uuid
  - `name` string, required
  - `email` string, email, required
  - `slack_uid` string, nullable, required
  - `role` string, uuid, nullable
  - `role_serialized` Role, required
    - `id` string, uuid
    - `title` string, nullable
    - `technical` boolean
    - `company` string, uuid, nullable
  - `company` string, uuid
  - `user` string, uuid
  - `is_admin` boolean
  - `is_manager` string
  - `company_details` Company, required
    - `id` string, uuid
    - `title` string
    - `email` string, email, nullable
    - `slack_workspace` string
    - `max_users` string
    - `plan_title` string
    - `plan_price` string
    - `all_content` string
    - `custom_content` string
    - `has_workflows` string
    - `has_paid_streams` string
    - `hris_integration` string
    - `has_vanta` string
    - `has_api_access` string
    - `has_docebo` string
    - `has_seismic` string
    - `has_phishing_access` string
    - `icon` string, uri, nullable
    - `domain` string, nullable
    - `active_employees_trainings` string
    - `total_employees` string
    - `guest_accounts_included` string
    - `is_global_content_maker` string
  - `avatar_image` string, uri, nullable
  - `points` integer
  - `level` string
  - `notifications` EmployeeNotifications, required
    - `id` string, uuid
    - `created` string, date-time
    - `modified` string, date-time
    - `email_notification` boolean
    - `slack_notification` boolean
  - `google_id` string

## Response `200`

OK

- Employee
  - `id` string, uuid
  - `name` string, required
  - `email` string, email, required
  - `slack_uid` string, nullable, required
  - `role` string, uuid, nullable
  - `role_serialized` Role, required
    - `id` string, uuid
    - `title` string, nullable
    - `technical` boolean
    - `company` string, uuid, nullable
  - `company` string, uuid
  - `user` string, uuid
  - `is_admin` boolean
  - `is_manager` string
  - `company_details` Company, required
    - `id` string, uuid
    - `title` string
    - `email` string, email, nullable
    - `slack_workspace` string
    - `max_users` string
    - `plan_title` string
    - `plan_price` string
    - `all_content` string
    - `custom_content` string
    - `has_workflows` string
    - `has_paid_streams` string
    - `hris_integration` string
    - `has_vanta` string
    - `has_api_access` string
    - `has_docebo` string
    - `has_seismic` string
    - `has_phishing_access` string
    - `icon` string, uri, nullable
    - `domain` string, nullable
    - `active_employees_trainings` string
    - `total_employees` string
    - `guest_accounts_included` string
    - `is_global_content_maker` string
  - `avatar_image` string, uri, nullable
  - `points` integer
  - `level` string
  - `notifications` EmployeeNotifications, required
    - `id` string, uuid
    - `created` string, date-time
    - `modified` string, date-time
    - `email_notification` boolean
    - `slack_notification` boolean
  - `google_id` string

---

[API](https://skmtc.net/haekka/apis/snippets-api.md) · [All operations](https://skmtc.net/haekka/apis/snippets-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/haekka/snippets-api/versions/2a72ba99e389/schema)
