Отделы

Создать

post/api-v2/departments

Request

  • Base URL
    https://api-docs.yougile.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

titlestring required

Название отдела

parentIdstring

Id родительского отдела. Оставить пустым или "-", если это отдел верхнего уровня

usersobject

Сотрудники на отделе и их роль. Возможные значения: <br/><div>1) manager или member</div><div>2) "-" или "" для удаления существующего пользователя из отдела</div>

Example request

{
  "title": "Отдел разработки",
  "parentId": "001623dc-6501-461b-9de6-c1d1d6fc1d16",
  "users": {
    "4902b994-b806-4af4-acec-018ea5ea6468": "manager",
    "8aeaeb9d-f94e-4c66-96d3-eb8d96fe7018": "member"
  }
}

Response

idstring required

ID объекта

Example response

{
  "id": "4f6f0391-0f94-4d30-9b0e-99430a36d4fb"
}

Changes

No recorded changes to this operation across all 4 revisions of this API.