GET

Get Survey by its Id Please find definition of QuestionConfiguration and SurveySelectionRule.

URL : /v1.0/survey/{surveyId}

Method : GET

Auth required : YES

Example

GET /v1.0/survey/{surveyId} HTTP/1.1
Host: <API_ENDPOINT>
Authorization: Bearer <API_TOKEN_HERE>
Cache-Control: no-cache

Success Response

Code: 200 OK

{
	"end": "DateTime",
	"id": "integer",
	"name": "string",
	"questions": [
		{
		"order": "integer",
		"key": "string",
		"type": "integer",
		"configuration": "if type == 2 then QuestionConfiguration JSON string, else null"
		}
	],
	"start": "DateTime",
	"state": "integer",
	"surveyDefinitionId": "integer",
	"surveySelectionRule": "SurveySelectionRule JSON string"
}

Error Response

Code: 401 Unauthorized

{
  "Message": "Authorization has been denied for this request."
}