Retrieve Questionnaire Authorization Reasons
get
/spms/v2/ships/{shipId}/reservations/{reservationId}/questionnaireAcknowledgements/{questionnairesAcknowledgementId}/authorizationReasons
This is to retrieve acknowledged questionnaire authorization reasons by reservation id and template id
Request
Supported Media Types
- application/json
Path Parameters
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Questionnaire Authorization Reason Response
Type:
object
Title:
Questionnaire Authorization Reason Response
Questionnaire Authorization Reason Response
Show Source
Nested Schema : items
Type:
Show Source
array
-
Array of:
object authorizationReason
Authorization Reason
Example:
[
{
"authorizedId":"1",
"questionId":"1001",
"answerId":"1111",
"authorizedReasonId":"1",
"authorizer":{
"id":"1",
"name":"Gary"
},
"authorizedDateTime":"2009-10-31T06:59:00.000",
"editor":{
"id":"1",
"name":"Gary"
},
"modifiedDateTime":"2009-10-31T06:59:00.000"
},
{
"authorizedId":"2",
"questionId":"1002",
"answerId":"222",
"authorizedReasonId":"2",
"authorizer":{
"id":"22",
"name":"James"
},
"authorizedDateTime":"2009-10-31T06:59:00.000",
"editor":{
"id":"1",
"name":"Gary"
},
"modifiedDateTime":"2009-10-31T06:59:00.000"
},
{
"authorizedId":"3",
"questionId":"1003",
"answerId":"333",
"authorizedReasonId":"55",
"authorizer":{
"id":"1",
"name":"Gary"
},
"authorizedDateTime":"2009-10-31T06:59:00.000",
"editor":{
"id":"1",
"name":"Gary"
},
"modifiedDateTime":"2009-10-31T06:59:00.000"
}
]
Nested Schema : editor
Type:
object
Editor
Show Source
-
id(required):
number
Minimum Value:
1
Pattern:^[0-9]*$
Editor IdExample:1001
-
name(required):
string
Minimum Length:
1
Maximum Length:255
Editor NameExample:Gary
400 Response
BAD REQUEST
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
UNAUTHORIZED
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
403 Response
FORBIDDEN
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
NOT FOUND
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
METHOD NOT ALLOWED
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
406 Response
NOT ACCEPTABLE
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
INTERNAL SERVER ERROR
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
503 Response
SERVICE UNAVAILABLE
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source