Update existing special request by special request ID
put
/spms/v2/ships/{shipId}/reservations/{reservationId}/specialRequests/{specialRequestId}
This is to update existing special request that linked to a specific reservation ID
Request
Supported Media Types
- application/json
Path Parameters
-
reservationId: number
Reservation Id
-
shipId: number
Ship Id
-
specialRequestId: string
Special Request Id
Special Request Object
Root Schema : SpecialRequestPUTObject
Type:
object
Special Request PUT Object
Show Source
-
deliveredDateTime(optional):
string(date-time)
Example:
2018-08-08T20:00:00
-
deliveryLocation(optional):
string
Minimum Length:
0
Maximum Length:30
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Delivery LocationExample:Restaurant Blue Ocean
-
deliveryStatus(optional):
string
Allowed Values:
[ "Pending", "Delivered" ]
Amenity Delivery StatusExample:Pending
-
externalCode(optional):
string
Pattern:
[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
External CodeExample:123
-
quantity(optional):
number
Pattern:
^[0-9]*$
QuantityExample:1
-
requestedDateTime(optional):
string(date-time)
Example:
2015-09-09T16:00:00
-
specialRequestActionCode(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action CodeExample:BIRTHC
-
specialRequestActionDepartmentCode(optional):
string
Minimum Length:
1
Maximum Length:10
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action Department CodeExample:111
-
specialRequestActionDescription(optional):
string
Pattern:
[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action DescriptionExample:Birthday Cake Celebration
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : SpecialRequestGETObject
Type:
object
SpecialRequest GET Object
Show Source
-
completedDateTime(optional):
string(date-time)
Example:
2015-09-09T16:00:00.000+0000
-
createdBy(optional):
string
Created ByExample:
FOPolly Pipe
-
createdDateTime(optional):
string(date-time)
Example:
2015-09-09T16:00:00.000+0000
-
deliveredBy(optional):
string
Delivered ByExample:
Jason Tan
-
deliveredDateTime(optional):
string(date-time)
Example:
2018-08-08T20:00:00
-
deliveryLocation(optional):
string
Minimum Length:
0
Maximum Length:30
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Delivery LocationExample:Restaurant Blue Ocean
-
deliveryStatus(optional):
string
Allowed Values:
[ "Pending", "Delivered" ]
Amenity Delivery StatusExample:Pending
-
externalCode(optional):
string
Pattern:
[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
External CodeExample:123
-
lastModifiedDateTime(optional):
string(date-time)
Example:
2015-09-09T16:00:00.000+0000
-
quantity(optional):
number
Pattern:
^[0-9]*$
QuantityExample:1
-
requestedDateTime(optional):
string(date-time)
Example:
2015-09-09T16:00:00
-
reservationId(optional):
number
Minimum Value:
1
Pattern:^[0-9]*$
Reservation IdExample:1001
-
specialRequestActionCode(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action CodeExample:BIRTHC
-
specialRequestActionDepartmentCode(optional):
string
Minimum Length:
1
Maximum Length:10
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action Department CodeExample:111
-
specialRequestActionDepartmentDescription(optional):
string
Pattern:
[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action Department DescriptionExample:Bartender
-
specialRequestActionDescription(optional):
string
Pattern:
[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Special Request Action DescriptionExample:Birthday Cake Celebration
-
specialRequestId(optional):
number
Minimum Value:
1
Pattern:^[0-9]*$
Special Request IdExample:123
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":"Invalid parameter(s) passed in"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorized",
"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
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource is forbidden"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
"title":"Not Found",
"detail":"Special Request Id could not be found"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
Method Not Supported
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://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
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
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
409 Response
Conflict
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10",
"title":"Conflict",
"detail":"Update is not allowed for Special Request that have been delivered."
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
410 Response
Gone
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.11",
"title":"Gone",
"detail":"Requested Resource no longer exists"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
415 Response
Invalid content
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Error occurred while processing this request"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
501 Response
Not Implemented
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2",
"title":"Not implemented",
"detail":"Resource is not implemented in this version of the API"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service not available"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source