Skip to main content
POST
Create a project

Description

Create a new SightX project.

Payload

where:
  • title: Title of the new project. Required.
  • survey: Object containing the pages of the projects. Optional.
  • color: Hex color without the # symbol (e.g. 3632a8). Optional.

Response

200 OK

where:
  • createdAt: Date of creation of the project in the format YYYY-MM-DDTHH:mm:ss.SSSZ.
  • id: Id of the project.
  • isLive: Wether the project is live or not. It is false by default.
  • status: The status of the project. When the project is created, it will be draft by default.
  • survey: Object containing the survey structure, eg. pages, questions, etc.
    • pages: Array of page objects. Empty by default.
  • customization: Object containing the survey visual configurations.
    • foregroundColor: Color of the text of the survey.
    • backgroundColor: Color of the background of the elements of the survey.
    • question: Object containing question title configurations.
      • font: The font of the question title.
      • color: The color of the font of the question title.
      • align: The position to align the question title.
    • answer: Object containing answers configurations.
      • font: The font of the answers.
      • color: Font color of the answers.
      • align: The position to align the answers.
    • showNumbers: Boolean value to specify if numbers are displayed next to question titles.
    • paging: String value containing the type of the pagination of the survey for desktop. Accepted values are page|question|none.
    • mobilePaging: String value containing the type of the pagination of the survey for mobile. Accepted values are page|question|none.
    • progressBar: Object containing the survey progress bar configurations.
      • enabled: Boolean value to specify if the progress bar should be displayed or not.
      • type: The type of progress bar to display. Accepted values are bar|percent|simple|none.
  • stats: Object containing some relevant stats of the project.
    • questions: Object containing question stats.
      • totalCount: Total number of questions present in the survey.
      • contactInfoRelatedItemsCount: Total number of contact info items to relate.
    • totalResponsesCount: Deprecated.
    • totalTimeToComplete: Deprecated.
  • hasSignatureConfirmation: Boolean value to specify if the survey asks for a signature confirmation before starting.- createdAt: Date of creation of the project in the format YYYY-MM-DDTHH:mm:ss.SSSZ.
  • id: Id of the project.
  • isLive: Wether the project is live or not. It is false by default.
  • status: The status of the project. When the project is created, it will be draft by default.
  • survey: Object containing the survey structure, eg. pages, questions, etc.
    • pages: Array of page objects. Empty by default.
  • customization: Object containing the survey visual configurations.
    • foregroundColor: Color of the text of the survey.
    • backgroundColor: Color of the background of the elements of the survey.
    • question: Object containing question title configurations.
      • font: The font of the question title.
      • color: The color of the font of the question title.
      • align: The position to align the question title.
    • answer: Object containing answers configurations.
      • font: The font of the answers.
      • color: Font color of the answers.
      • align: The position to align the answers.
    • showNumbers: Boolean value to specify if numbers are displayed next to question titles.
    • paging: String value containing the type of the pagination of the survey for desktop. Accepted values are page|question|none.
    • mobilePaging: String value containing the type of the pagination of the survey for mobile. Accepted values are page|question|none.
    • progressBar: Object containing the survey progress bar configurations.
      • enabled: Boolean value to specify if the progress bar should be displayed or not.
      • type: The type of progress bar to display. Accepted values are bar|percent|simple|none.
  • stats: Object containing some relevant stats of the project.
    • questions: Object containing question stats.
      • totalCount: Total number of questions present in the survey.
      • contactInfoRelatedItemsCount: Total number of contact info items to relate.
    • totalResponsesCount: Deprecated.
    • totalTimeToComplete: Deprecated.
  • hasSignatureConfirmation: Boolean value to specify if the survey asks for a signature confirmation before starting.

401 Unauthorized

The user doesn’t have permissions.

422 Bad Request

title 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

Successful response