Organization

Give a person their manager

A USER id, never an OrgRef: the typing carries half the cardinal rule — a person answers to a person, or to nobody. managerUserId: null makes them a root of the chart.

put/organization/members/{userId}/manager

Request

  • Base URL: https://api.atako.ai
  • URL: https://api.atako.ai/organization/members/{userId}/manager
  • Auth: HTTP bearer

Path parameters

userIdstring uuid required

User id of the member

Request body

managerUserIdstring uuid nullable required

Response

The recomputed chart — identical shape to GET /organization/chart.

rootHumanIdstring uuid nullable required

DERIVED, never stored: the oldest admin member. Null when the company has no admin at all — the only case where the chart has nothing to hang on.

canEditboolean required

True when the caller is a company admin, i.e. when the write operations below are open to them. Told here so the client never has to deduce a permission from a 403 it provoked.

Changes

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