Create Table
Analysis / Pivot table
Create Table
Description
Create a new pivot table
Payload
{
"projectId": string,
"name": string,
"selectedChart": string,
"values": array,
"alphaValue": number
}
where:
projectId: Project identifier. (Required).name: Selected name for the pivot table.selectedChart: Type of table selected.values: Array of objects, each one representing a value format to present in each cell in the table.alphaValue: Alpha value used for significance testing.
Values
Array of objects, each one representing a value format to present in each cell in the table. They have the following structure:
{
"frontendId": number,
"aggregationType": number,
"valueType": string,
"formatType": string,
"color": string
}
where:
frontendId: An id to identify the question in the frontendaggregationType: Type of aggregator format for the value. Could be:- 1: count
- 2: min
- 3: max
- 4: sum
- 5: average
valueType: Could becountorbyQuestionformatType: Represents the format in which the value will be presented on the table. Could be:- frecuency
- percentage
- both
color: Color of the value on the table.
Response
200 OK
{
"_id": string,
"projectId": string,
"name": string,
"selectedChart": string,
"rows": array,
"columns": array,
"values": array,
"alphaValue": number,
"updatedAt": string,
"createdAt": string,
"createdBy": string,
"updatedBy": string,
}
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in the service.
POST
Create Table
Description
Create a new pivot tablePayload
projectId: Project identifier. (Required).name: Selected name for the pivot table.selectedChart: Type of table selected.values: Array of objects, each one representing a value format to present in each cell in the table.alphaValue: Alpha value used for significance testing.
Values
Array of objects, each one representing a value format to present in each cell in the table. They have the following structure:frontendId: An id to identify the question in the frontendaggregationType: Type of aggregator format for the value. Could be:- 1: count
- 2: min
- 3: max
- 4: sum
- 5: average
valueType: Could becountorbyQuestionformatType: Represents the format in which the value will be presented on the table. Could be:- frecuency
- percentage
- both
color: Color of the value on the table.
Response
200 OK
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in the service.