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
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Questionnaire Authorization Reason Response
Type: object
Title: Questionnaire Authorization Reason Response
Questionnaire Authorization Reason Response
Show Source
Nested Schema : items
Type: array
Show Source
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 : authorizationReason
Type: object
Authorization Reason
Show Source
Nested Schema : authorizer
Type: object
Authorizer
Show Source
  • Minimum Value: 1
    Pattern: ^[0-9]*$
    Authorizer Id
    Example: 1001
  • Minimum Length: 1
    Maximum Length: 255
    Authorizer Name
    Example: Gary
Nested Schema : editor
Type: object
Editor
Show Source
  • Minimum Value: 1
    Pattern: ^[0-9]*$
    Editor Id
    Example: 1001
  • Minimum Length: 1
    Maximum Length: 255
    Editor Name
    Example: Gary

400 Response

BAD REQUEST
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
    "title":"Bad Request",
    "detail":"The parameter questionnairesAcknowledgementId has incorrect format"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

401 Response

UNAUTHORIZED
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
    "title":"Unauthorised",
    "detail":"Valid token is required to access this resource"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

403 Response

FORBIDDEN
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
    "title":"Forbidden",
    "detail":"Access to this resource was forbidden"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

404 Response

NOT FOUND
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
    "title":"Not Found",
    "detail":"Authorization cannot be found"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

405 Response

METHOD NOT ALLOWED
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
    "title":"Method Not Supported",
    "detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

406 Response

NOT ACCEPTABLE
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
    "title":"Not Acceptable",
    "detail":"Request a Mime type that is supported for this Resource"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

500 Response

INTERNAL SERVER ERROR
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
    "title":"Internal Server Error",
    "detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source

503 Response

SERVICE UNAVAILABLE
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
    "title":"Service Unavailable",
    "detail":"Service Unavailable.  Try again later"
}
Nested Schema : Error Response
Type: object
Title: Error Response
Error Response returned when encountered error
Show Source
Back to Top