Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Focus Migration Resource

Adjust one row's focus

put

Records the company's own focus for this person, overriding the proposal. Rejected with 409 DRAFT_CONFIRMED once the company confirmed, with 412 COMPANY_ALREADY_ACTIVATED once Happyforce applied it, or if the row is STALE (the person is no longer MANAGER/ADMIN).

Authorizations
SessionIdstringRequired

SessionId

Path parameters
userIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Body

The company's own pick for one row

focusstring · enumRequired

The focus the company picks for this person, overriding the proposal

Possible values:
Responses
200

OK

*/*
userIdstringOptional

Person id (24-char hex)

namestringOptional
emailstringOptional
rolestring · enumOptionalPossible values:
declaredFocusstring · enumOptional

The focus already declared in the person's permissions when this row was last (re)generated; null when none was declared.

Possible values:
structuralSuggestionstring · enumOptional

What the structural heuristic reads off the org chart, independent of what is declared; null when the person covers no area.

Possible values:
confidencestring · enumOptionalPossible values:
managersBelowinteger · int32Optional

Count of other MANAGERs reporting into this person; meaningful only alongside the MANAGERS_BELOW reason.

proposedFocusstring · enumOptional

declaredFocus when present, otherwise the AI review's correction or structuralSuggestion. Never null: every row has a proposal.

Possible values:
proposalSourcestring · enumOptional

Where proposedFocus came from. AI_REVIEW: an AI review corrected the structural suggestion; aiReason, aiEvidence and aiConfidence say why. Never set over a declared or adjusted focus.

Possible values:
aiReasonstringOptional

One sentence from the AI review saying why it corrected the structural suggestion. Non-null only when proposalSource is AI_REVIEW. English; shown as is.

aiEvidencestringOptional

The datum the AI review rests its correction on (a team name, who holds the same nodes...). Non-null only when proposalSource is AI_REVIEW.

aiConfidencestring · enumOptional

How much the AI review trusts its own correction. Non-null only when proposalSource is AI_REVIEW; independent of confidence, which stays the structural rule's.

Possible values:
needsHumanReviewbooleanOptional

True when a person should look at this row before activating: the person declares no area (reasons has NO_AREAS) or several EXECUTIVEs hold exactly the same nodes (reasons has CO_EXECUTIVES_SAME_NODE). The row still carries a proposed focus; the mark never blocks activation.

adjustedFocusstring · enumOptional

The company's own pick, overriding proposedFocus; null until adjusted.

Possible values:
finalFocusstring · enumOptional

The focus that will be (or was) written to permissions: adjustedFocus when present, otherwise proposedFocus.

Possible values:
statusstring · enumOptionalPossible values:
put/api/v1/company/people/focus-migration/{userId}
PUT /api/v1/company/people/focus-migration/{userId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "focus": "TEAM_LEAD"
}
200

OK

{
  "userId": "text",
  "name": "text",
  "email": "text",
  "role": "ADVISOR",
  "areas": [
    {
      "id": "text",
      "name": "text"
    }
  ],
  "declaredFocus": "TEAM_LEAD",
  "structuralSuggestion": "TEAM_LEAD",
  "confidence": "LOW",
  "reasons": [
    "ADMIN_NOT_INFERABLE"
  ],
  "managersBelow": 1,
  "proposedFocus": "TEAM_LEAD",
  "proposalSource": "DECLARED",
  "aiReason": "text",
  "aiEvidence": "text",
  "aiConfidence": "LOW",
  "needsHumanReview": true,
  "adjustedFocus": "TEAM_LEAD",
  "finalFocus": "TEAM_LEAD",
  "status": "PROPOSED"
}

Confirm the draft

post

Records that the company reviewed the draft and it is correct. Writes nothing to permissions: Happyforce applies it afterwards. Once confirmed the rows can no longer be adjusted until Happyforce reopens the draft. Idempotent; refused only when there is no draft at all (see reason).

Authorizations
SessionIdstringRequired

SessionId

Responses
200

Confirmed (or already was)

*/*

Outcome of the company confirming its focos y roles draft

confirmedbooleanOptional

True when the draft is confirmed (now, or already was)

alreadyConfirmedbooleanOptional

True when the draft had already been confirmed; confirmed is also true in that case, and confirmedAt is the original moment

confirmedAtstring · date-timeOptional

When the company confirmed; null when refused

reasonstring · enumOptional

Why confirming was refused: NO_DRAFTS (nothing to confirm). Null when confirmed is true.

Possible values:
post/api/v1/company/people/focus-migration/confirm
POST /api/v1/company/people/focus-migration/confirm HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
{
  "confirmed": true,
  "alreadyConfirmed": true,
  "confirmedAt": "2026-01-01T00:00:00.000Z",
  "reason": "NO_DRAFTS"
}

The account's focos y roles draft

get

Every current MANAGER/ADMIN's row — declared focus, structural suggestion, the resulting proposal, and the company's own adjustment if any — plus totals by status and when the company confirmed and when Happyforce applied it.

Authorizations
SessionIdstringRequired

SessionId

Responses
200

OK

*/*

Draft ManagementFocus proposal for every MANAGER/ADMIN of the account

activatedAtstring · date-timeOptional

When Happyforce applied focos y roles to permissions. Null while still in draft; the rows are then read-only.

draftConfirmedAtstring · date-timeOptional

When the company confirmed the draft is correct. Null while unconfirmed (or after Happyforce reopened it). While set, rows can no longer be adjusted (PUT answers 409 DRAFT_CONFIRMED).

confirmedBystringOptional

Person id (24-char hex) of the ADMIN who confirmed; null while unconfirmed.

get/api/v1/company/people/focus-migration
GET /api/v1/company/people/focus-migration HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

{
  "activatedAt": "2026-01-01T00:00:00.000Z",
  "draftConfirmedAt": "2026-01-01T00:00:00.000Z",
  "confirmedBy": "text",
  "rows": [
    {
      "userId": "text",
      "name": "text",
      "email": "text",
      "role": "ADVISOR",
      "areas": [
        {
          "id": "text",
          "name": "text"
        }
      ],
      "declaredFocus": "TEAM_LEAD",
      "structuralSuggestion": "TEAM_LEAD",
      "confidence": "LOW",
      "reasons": [
        "ADMIN_NOT_INFERABLE"
      ],
      "managersBelow": 1,
      "proposedFocus": "TEAM_LEAD",
      "proposalSource": "DECLARED",
      "aiReason": "text",
      "aiEvidence": "text",
      "aiConfidence": "LOW",
      "needsHumanReview": true,
      "adjustedFocus": "TEAM_LEAD",
      "finalFocus": "TEAM_LEAD",
      "status": "PROPOSED"
    }
  ],
  "totals": {
    "proposed": 1,
    "needsReview": 1,
    "adjusted": 1,
    "applied": 1,
    "stale": 1
  }
}

Last updated