Skip to main content

Weight

A weighting of a survey, as returned by GET /api/v2/survey/{surveyCode}/weeks-and-weights and in the weights of each survey of GET /api/v2/users/surveys. It can be sent as it is returned: only id is read, and it is required (400 AE_ERR_412 without it); label, universe and isDefault are ignored.

idstringrequired

Identifier of the weighting.

labelstring

Name of the weighting, as the survey defines it. It is not translated.

universeinteger<int32>

Universe of the weighting. It can be missing.

isDefaultboolean

Whether it is the default weighting of the survey, the one used when a table is sent without a weighting.

Weight
{
"id": "string",
"label": "string",
"universe": 0,
"isDefault": true
}