Skip to main content
PUT
Set the Company score rules

Authorizations

Authorization
string
header
required

Bearer API key. Secret server keys start with gt_live_; client-safe browser keys start with gt_pub_ (write-only, origin-pinned). Create and scope keys in Settings → API Keys.

Body

application/json

How a Company's score is built from its people's answers. Each person counts once per measure.

method
enum<string>
required

How one person's answers inside the window become their score: their latest answer, or the mean or median of their answers. Answers on another scale are mapped onto the scale of the person's latest answer first.

Available options:
latest,
mean,
median
windowDays
integer
required

Answers older than this many days stop counting toward Company scores and coverage.

Required range: 30 <= x <= 730
roleWeights
object
required

How many times a person in this role counts. Everyone else counts once. Weights of 1 are dropped when saved.

Response

The saved rules.

data
object
required

How a Company's score is built from its people's answers. Each person counts once per measure.