(Quick Reference) Service: Show a question line

Description: This web service return an existing question line of the specified id in JSON format

URL:

https://BASE_URL/api/VERSION/questionLines/{id}

Method: GET

Parameters:

NameDescriptionTypeRequiredExample values
idThe numerical ID of the desired recordLongYes777

Success Output

Success case: response.status = 200

{
  "id": 6,
  "text": "WORK",
  "item": null,
  "itemCategory": null,
  "itemGroup": null,
  "question": {
    "id": 38,
    "href": "/api/v1.0/questions/38"
  },
  "dateCreated": "2016-11-25T09:33:19Z",
  "lastUpdated": "2016-11-25T09:33:19Z"
}

Failure Output

Failure case:response.status = 400
{
    "error": "invalid_param_type",
    "error_description": "The type of parameter id you provided is not valid for this request."
}

Failure case:response.status = 404
{
  "error": "not_found",
  "error_description": "The question line with the id 99 doesn't exist."
}