Skip to main content
POST
Create a bucket

Description

Creates a new bucket for a project.

Payload

where:
  • aggregations: Object containing question options to aggregate.
  • questionId: Id of the question to aggregate.
  • projectId: Id of the project.

Response

200 OK

where:
  • createdAt: Creation date for the bucket with the format YYYY-MM-DDTHH:mm:ss.SSSZ.
  • updatedAt: Last update date for the bucket with the format YYYY-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.

Authorizations

Authorization
string
header
required

Access token obtained from the m2m-token endpoint.

Headers

Authorization
string
required

Authorization token

Body

application/json

The body is of type object.

Response

Create a bucket

The response is of type object.