Skip to main content
POST
Update Pivot Table

Description

Update a pivot table

Payload

where:
  • _id: Id of the table to update (Required).
  • projectId: Project identifier to which the pivot table was created. (Required).
  • name: Selected name for the pivot table.
  • selectedChart: Type of table selected.
  • rows: Array of objects, each one representing a question selected as row for the table.
  • columns: Array of objects, each one representing a question selected as column for the table.
  • 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.
  • displayNullData: Whether to display or hide null data from the table

Rows

Array of objects, each one representing a question selected as row for the table. Has the following structure:
where:
  • frontendId: An id to identify the question in the frontend
  • questionId: Id of the question in the server

Columns

Array of objects, each one representing a question selected as column for the table. Has the following structure:
where:
  • frontendId: An id to identify the question in the frontend
  • questionId: Id of the question in the server

Values

Array of objects, each one representing a value format to present in each cell in the table Has the following structure:
where:
  • frontendId: An id to identify the question in the frontend
  • aggregationType: Type of aggregator format for the value. Could be:
    • 1: count
    • 2: min
    • 3: max
    • 4: sum
    • 5: average
  • valueType: Could be count or byQuestion
  • formatType: 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

where:
  • nModified: Number of records modified.

401 Unauthorized

Invalid authorization.

404 Not Found

Resource not found.

500 Internal Server Error

Error occurred in the service.

Authorizations

Authorization
string
header
required

Access token obtained from the m2m-token endpoint.

Headers

Authorization
string
required

Body

application/json

The body is of type object.

Response

Update Pivot Table

The response is of type object.