User Focus Migration Resource
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).
SessionId
64f8a0e2d5b7c9a1e3f4a5b6The company's own pick for one row
The focus the company picks for this person, overriding the proposal
OK
Person id (24-char hex)
The focus already declared in the person's permissions when this row was last (re)generated; null when none was declared.
What the structural heuristic reads off the org chart, independent of what is declared; null when the person covers no area.
Count of other MANAGERs reporting into this person; meaningful only alongside the MANAGERS_BELOW reason.
declaredFocus when present, otherwise the AI review's correction or structuralSuggestion. Never null: every row has a proposal.
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.
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.
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.
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.
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.
The company's own pick, overriding proposedFocus; null until adjusted.
The focus that will be (or was) written to permissions: adjustedFocus when present, otherwise proposedFocus.
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"
}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"
}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).
SessionId
Confirmed (or already was)
Outcome of the company confirming its focos y roles draft
True when the draft is confirmed (now, or already was)
True when the draft had already been confirmed; confirmed is also true in that case, and confirmedAt is the original moment
When the company confirmed; null when refused
Why confirming was refused: NO_DRAFTS (nothing to confirm). Null when confirmed is true.
Refused; see reason (NO_DRAFTS)
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"
}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.
SessionId
OK
Draft ManagementFocus proposal for every MANAGER/ADMIN of the account
When Happyforce applied focos y roles to permissions. Null while still in draft; the rows are then read-only.
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).
Person id (24-char hex) of the ADMIN who confirmed; null while unconfirmed.
GET /api/v1/company/people/focus-migration HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
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