Create a bucket
Analysis / Buckets
Create a bucket
Description
Creates a new bucket for a project.
Payload
{
"aggregations": {
"1": {
"options": [number],
"label": "string"
},
"2": {
"label": "string",
"options": [number],
"excluded": boolean
}
},
"questionId": "string",
"projectId": "string"
}
where:
aggregations: Object containing question options to aggregate.questionId: Id of the question to aggregate.projectId: Id of the project.
Response
200 OK
"createdAt": "string",
"updatedAt": "string",
"questionId": "string",
"aggregations": {
"1": {
"options": [number],
"label": "string"
},
"2": {
"label": "string",
"options": [number],
"excluded": boolean
}
},
"id": "string",
"projectId": "string"
}
where:
createdAt: Creation date for the bucket with the formatYYYY-MM-DDTHH:mm:ss.SSSZ.updatedAt: Last update date for the bucket with the formatYYYY-MM-DDTHH:mm:ss.SSSZ.aggregations: Object containing question options to aggregate.questionId: Id of the question to aggregate.projectId: Id of the project.id: Bucket Id.
401 Unauthorized
The user doesn’t have permissions.
422 Unprocessable Entity
questionIdis missing.
500 Internal Server Error
Error occurred while processing the request.
POST
Create a bucket
Description
Creates a new bucket for a project.Payload
aggregations: Object containing question options to aggregate.questionId: Id of the question to aggregate.projectId: Id of the project.
Response
200 OK
createdAt: Creation date for the bucket with the formatYYYY-MM-DDTHH:mm:ss.SSSZ.updatedAt: Last update date for the bucket with the formatYYYY-MM-DDTHH:mm:ss.SSSZ.aggregations: Object containing question options to aggregate.questionId: Id of the question to aggregate.projectId: Id of the project.id: Bucket Id.
401 Unauthorized
The user doesn’t have permissions.
422 Unprocessable Entity
questionId is missing.
500 Internal Server Error
Error occurred while processing the request.