Update an existing amenity record
put
/spms/v2/ships/{shipId}/reservations/{reservationId}/amenities/{amenityId}
This is to update an existing amenity record
Request
Supported Media Types
- application/json
Path Parameters
-
amenityId(required): string
Amenity Id
-
reservationId(required): number
Reservation Id
-
shipId(required): number
Ship Id
Amenity Object
Root Schema : AmenityPUTObject
Type:
object
Amenities PUT Object
Show Source
-
amenityCancelReason:
string
Minimum Length:
1
Maximum Length:100
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity Cancel Reason * `null` if emptyExample:Cancel by Guest
-
amenityCode:
string
Minimum Length:
1
Maximum Length:6
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity CodeExample:821
-
amenityId:
number
Minimum Length:
1
Pattern:^[0-9]*$
Amenity IdExample:1001
-
amenityStatus:
string
Allowed Values:
[ "Active", "Cancelled" ]
Amenities StatusExample:Active
-
applicable:
string
Allowed Values:
[ "Pax", "Cabin" ]
ApplicableExample:Pax
-
codeExtension:
string
Minimum Length:
1
Maximum Length:15
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Code Extension * `null` if emptyExample:821
-
comments:
string
Minimum Length:
1
Maximum Length:2500
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity Comments * `null` if emptyExample:Guest comments
-
cost:
number
Pattern:
^[0-9]*$
Cost * `null` if emptyExample:10
-
currencyCode:
string
Minimum Length:
1
Maximum Length:6
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Currency Code * `null` if emptyExample:USD
-
deliveryDateTime:
string(date-time)
Delivery Date Time * `null` if emptyExample:
2015-09-09T16:00:00
-
deliveryDivisionCode:
string
Minimum Length:
1
Maximum Length:10
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Delivery Division Code * `null` if emptyExample:REST
-
deliveryLocation:
string
Minimum Length:
1
Maximum Length:30
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Delivery Location * `null` if emptyExample:Restaurant Blue Ocean
-
deliveryStatus:
string
Allowed Values:
[ "Pending", "Delivered" ]
Amenity Delivery StatusExample:Pending
-
flag:
string
Minimum Length:
0
Maximum Length:1
Displayed as Flag in the Amenities section in guest billing screen -
notes:
string
Minimum Length:
1
Maximum Length:2500
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity Notes * `null` if emptyExample:Some notes.
-
occurrence:
string
Minimum Length:
1
Maximum Length:10
Delivery Occurrence * `null` if emptyExample:Once
-
price:
number
Pattern:
^[0-9]*$
Price * `null` if emptyExample:10
-
quantity:
number
Pattern:
^[0-9]*$
Quantity * `null` if emptyExample:1
-
reservationId:
number
Minimum Length:
1
Pattern:^[0-9]*$
Reservation IdExample:1001
-
sender1:
string
Minimum Length:
1
Maximum Length:255
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Sender 1 * `null` if emptyExample:Mr. Niel Down
-
sender2:
string
Minimum Length:
1
Maximum Length:40
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Sender 2 * `null` if emptyExample:Anna Domino
-
senderMessage:
string
Minimum Length:
1
Maximum Length:255
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Sender Message * `null` if emptyExample:Happy Wedding Anniversary
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : AmenityGETObject
Type:
object
Amenities GET Object
Show Source
-
amenityCancelReason:
string
Minimum Length:
1
Maximum Length:100
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity Cancel Reason * `null` if emptyExample:Cancel by Guest
-
amenityCode:
string
Minimum Length:
1
Maximum Length:6
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity CodeExample:821
-
amenityCodeDescription:
string
Amenity Code's DescriptionExample:
Description
-
amenityId:
number
Minimum Length:
1
Pattern:^[0-9]*$
Amenity IdExample:1001
-
amenityStatus:
string
Allowed Values:
[ "Active", "Cancelled" ]
Amenities StatusExample:Active
-
applicable:
string
Allowed Values:
[ "Pax", "Cabin" ]
ApplicableExample:Pax
-
codeExtension:
string
Minimum Length:
1
Maximum Length:15
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Code Extension * `null` if emptyExample:821
-
comments:
string
Minimum Length:
1
Maximum Length:2500
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity Comments * `null` if emptyExample:Guest comments
-
completedBy:
string
Completed ByExample:
FBJohn Quil
-
completedDateTime:
string(date-time)
Example:
2015-09-09T16:00:00
-
cost:
number
Pattern:
^[0-9]*$
Cost * `null` if emptyExample:10
-
createdBy:
string
Created ByExample:
FOPolly Pipe
-
createdDateTime:
string(date-time)
Example:
2015-09-09T16:00:00
-
currency:
object currency
Currency Group
-
deliveryDateTime:
string(date-time)
Delivery Date Time * `null` if emptyExample:
2015-09-09T16:00:00
-
deliveryDivision:
object deliveryDivision
Delivery Division Group
-
deliveryLocation:
string
Minimum Length:
1
Maximum Length:30
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Delivery Location * `null` if emptyExample:Restaurant Blue Ocean
-
deliveryStatus:
string
Allowed Values:
[ "Pending", "Delivered" ]
Amenity Delivery StatusExample:Pending
-
flag:
string
Minimum Length:
0
Maximum Length:1
Displayed as Flag in the Amenities section in guest billing screen -
lastModifiedDateTime:
string(date-time)
Example:
2015-09-09T16:00:00
-
notes:
string
Minimum Length:
1
Maximum Length:2500
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Amenity Notes * `null` if emptyExample:Some notes.
-
occurrence:
string
Minimum Length:
1
Maximum Length:10
Delivery Occurrence * `null` if emptyExample:Once
-
price:
number
Pattern:
^[0-9]*$
Price * `null` if emptyExample:10
-
quantity:
number
Pattern:
^[0-9]*$
Quantity * `null` if emptyExample:1
-
reservationId:
number
Minimum Length:
1
Pattern:^[0-9]*$
Reservation IdExample:1001
-
sender:
object sender
Sender group
-
senderMessage:
string
Minimum Length:
1
Maximum Length:255
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Sender Message * `null` if emptyExample:Happy Wedding Anniversary
Nested Schema : currency
Type:
object
Currency Group
Show Source
-
comment:
string
Currency DescriptionExample:
US Dollar
-
departmentId:
string
Minimum Length:
1
Maximum Length:6
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Currency Code * `null` if emptyExample:USD
Nested Schema : deliveryDivision
Type:
object
Delivery Division Group
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:10
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Delivery Division Code * `null` if emptyExample:REST
-
description:
string
Delivery Division DescriptionExample:
Restaurant
Nested Schema : sender
Type:
object
Sender group
Show Source
-
sender1:
string
Minimum Length:
1
Maximum Length:255
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Sender 1 * `null` if emptyExample:Mr. Niel Down
-
sender2:
string
Minimum Length:
1
Maximum Length:40
Pattern:[a-zA-Z0-9 ] ~!@#$%^&*()_+-<>?/\|,.":;{}[]
Sender 2 * `null` if emptyExample:Anna Domino
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":"You are forbidden to use this API"
}
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":"Amenity 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 Allowed
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 Allowed",
"detail":"The method is not available"
}
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":"Amenity delivery status is delivered. Updating amenity will not be allowed."
}
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
Unsupported Media Type
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":"Unsupported Media Type",
"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