Core employees

Поставить сотрудника в подразделение

Changed on

Ставит действующего сотрудника в подразделение или убирает из оргструктуры (department пустой или «-»). Сотрудник — id, почта (с правом core.employee_requisites:read) или ФИО; подразделение — id, путь «Родитель / Имя» или однозначное название. Руководителя сотрудника вычисляет оргструктура; ответ называет его после записи.

post/api/v1/core/org-structure/placements

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

CoreOrgPlacementInput required
person, string required

Сотрудник: id, почта или ФИО действующего сотрудника

department, string

Подразделение: id, путь или название; пусто или «-» — убрать из оргструктуры

Response

Сотрудник после постановки

CoreOrgPlacementResult required
employee_id, string uuid required
full_name, string required
status, 'updated' | 'skipped' required
department_id, string uuid nullable required
department, string required
manager, CoreOrgPersonRef nullable required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision