Create Team Leaderboard
POST /sales-coach/team/leaderboards
Create a leaderboard.
id is caller-chosen, matching the app: these are config rows keyed by a
slug you pick, and POSTing an id that already exists UPSERTS rather than
failing. Said plainly because a caller retrying a create would otherwise
assume a duplicate was rejected.
Requires team-floor management: org Owner/Admin, or an explicit
sales_manager assignment.
Authorizations
Parameters
Header Parameters
Request Body required
A leaderboard: who is on it, what it measures, and what it is aiming at.
id is REQUIRED and client-supplied, matching the app - these are
config rows keyed by a slug the caller chooses, not server-generated
records. Sending an existing id through POST is how the app upserts.
object
The target a leaderboard is measured against.
object
Caller-chosen id. Reusing one upserts, matching the app.
Marks a board the product ships rather than one a customer made. Accepted because the app’s model has it; leave it False for your own boards.
One metric on a leaderboard, with its weight and visibility.
object
KPI id from GET /sales-coach/team/kpi-catalog.
How much this KPI counts toward the ranking.
Which team roles appear on this board.
Responses
201
Successful Response
object
An open envelope for a config, a bootstrap or a data response.
Open because the leaderboard and set DATA responses carry one key per KPI and the KPI catalogue is org-configurable: a closed model would drop a customer’s own metric, and a leaderboard missing a column reads as a rep having scored nothing.
object
422
Validation Error