Organization

Give an agent its own manager

The exception, not the ordinary case: it pulls the agent out of its team's line. manager: null puts it back into that line (inheritance). Refused when it would close a loop (ORG_CYCLE) or when nobody human would end up above the agent (ORG_NO_HUMAN_MANAGER) — an agent under an agent is allowed; an agent under an agent under nobody is what the rule forbids.

put/organization/agents/{id}/manager

Request

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

Path parameters

idstring uuid required

Agent id

Request body

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.