Skip to main content
Create a compensation plan, the container compensations hang off, empty or with its members (attributions). A group attribution covers whoever is in the group at each period. The plan is created with no compensation. Add compensations with create_compensation, then open the plan with get_plan or find it again in list_plans. Rename it or change its membership later with update_plan. Nothing is created when the name, the section or any attribution row is refused. On the live environment, attributing someone refreshes their statements in the background, as update_plan does. Every write to the live environment is recorded in the audit trail as the Qobra MCP agent; writes to a sandbox are not audited.

Parameters

Body

string
required
Display name of the plan; a blank name is refused.
string
Id of the section to file the plan under, as a plan’s section carries it in list_plans (sections are per environment: read it with the same sandbox_id). Never a name. Omit it, or pass "", to leave the plan unfiled.
object[]
Members of the new plan: one row per continuous stretch for each user or group, rows of one user or group not overlapping. Omit it for a plan with nobody attributed; update_plan sets the membership later.
string
Id of a sandbox from list_sandboxes, to create this in instead of the live environment. Omit it to create in live, the company’s real data. Never a name, never the live id.

Response

Body

object
The new plan, as a list_plans row.
object[]
The memberships the call created, one created row per declared stretch. Empty when the plan is created without attributions.