Create a project
Projects Dashboard / Projects
Create a project
Description
Create a new SightX project.
Payload
{
"title": "string",
"survey": {
"pages": array
},
"color": "string"
}
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
{
"createdAt": "string",
"id": "string",
"isLive": "boolean",
"status": "string",
"title": "string",
"survey": "object"
}
where:
createdAt: Date of creation of the project in the formatYYYY-MM-DDTHH:mm:ss.SSSZ.id: Id of the project.isLive: Wether the project is live or not. It isfalseby default.status: The status of the project. When the project is created, it will bedraftby 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 formatYYYY-MM-DDTHH:mm:ss.SSSZ.id: Id of the project.isLive: Wether the project is live or not. It isfalseby default.status: The status of the project. When the project is created, it will bedraftby 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
titleis missing.
500 Internal Server Error
Error occurred while processing the request.
POST
Create a project
Description
Create a new SightX project.Payload
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
createdAt: Date of creation of the project in the formatYYYY-MM-DDTHH:mm:ss.SSSZ.id: Id of the project.isLive: Wether the project is live or not. It isfalseby default.status: The status of the project. When the project is created, it will bedraftby 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 formatYYYY-MM-DDTHH:mm:ss.SSSZ.id: Id of the project.isLive: Wether the project is live or not. It isfalseby default.status: The status of the project. When the project is created, it will bedraftby 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.