Core employees

Завести пачку карточек сотрудников

Changed on

До 200 карточек «Команды» без доступа: кладовщики, монтажники и все, кому считают зарплату, но не нужен вход. Строка — то же тело, что у одиночного создания. Строки создаются независимо, ответ 200 называет исход каждой: created с карточкой, duplicate (та же почта выше в пачке или конфликт 409 одиночного создания — тело отказа в problem) или error с тем же кодом и текстом, что дал бы одиночный запрос. Реквизиты без права core.employee_requisites:write не сохраняются.

post/api/v1/core/employees/batch

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

CoreEmployeeBatchInput required
rows, CoreEmployeeCreate[] required

Карточки в порядке отчёта; строка — то же тело, что у одиночного создания

Response

Отчёт по строкам

CoreEmployeeBatchResult required
rows, CoreEmployeeBatchRow[] required
created, integer required
duplicates, integer required
failed, integer required

Changes

    • info

      added the optional property rows/items/employee/snils to the response with the status

    • warning

      added the new candidate enum value to the rows/items/employee/affiliation response property for the response status

    • info

      added the new optional request property rows/items/hiring_stage

    4 more changes in this revision