Update a guest or resident profile by guest Id

put

/spms/v2/ships/{shipId}/profiles/guests/{profileId}

This is to update a new guest or resident profile details by guest Id

Request

Supported Media Types
Path Parameters
Body ()
Guest Profile Object
Root Schema : Guest Profile Request
Type: object
Title: Guest Profile Request
Guest Profile Request Body
Show Source
Nested Schema : contactDetails
Type: object
Contact Details
Show Source
  • Minimum Length: 1
    Maximum Length: 20
    Pattern: ^[0-9+-]*$
    Temporary Phone Number * `null` if empty
    Example: 4413563590
  • Minimum Length: 1
    Maximum Length: 49
    Pattern: ^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$
    Email Address * `null` if empty
    Example: abby@mail.com
  • Minimum Length: 1
    Maximum Length: 30
    Pattern: ^[0-9+-]*$
    Emergency Contact Mobile Phone Number * `null` if empty
    Example: 0173443434
  • Minimum Length: 1
    Maximum Length: 100
    Pattern: ^[a-zA-Z0-9 ]+?$
    Emergency Contact Name * `null` if empty
    Example: Emmeline
  • Minimum Length: 1
    Maximum Length: 30
    Pattern: ^[0-9+-]*$
    Emergency Contact Phone Number * `null` if empty
    Example: +6239629999
  • Minimum Length: 1
    Maximum Length: 30
    Pattern: ^[0-9+-]*$
    Mobile Number * `null` if empty
    Example: 62-39629630
Nested Schema : passportDetailsRequest
Type: object
Passport Details
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Guest Profile
Type: object
Title: Guest Profile
Guest Profile Response
Show Source
Nested Schema : birthNation
Type: object
Birth Nation
Show Source
  • Minimum Length: 1
    Maximum Length: 6
    Pattern: ^[ A-Za-z0-9,'_@./#&+-]*$
    Birth Nation Code * `null` if empty
    Example: US
  • Birth Nation Name * `null` if empty
    Example: United States
Nested Schema : contactDetails
Type: object
Contact Details
Show Source
  • Minimum Length: 1
    Maximum Length: 20
    Pattern: ^[0-9+-]*$
    Temporary Phone Number * `null` if empty
    Example: 4413563590
  • Minimum Length: 1
    Maximum Length: 49
    Pattern: ^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$
    Email Address * `null` if empty
    Example: abby@mail.com
  • Minimum Length: 1
    Maximum Length: 30
    Pattern: ^[0-9+-]*$
    Emergency Contact Mobile Phone Number * `null` if empty
    Example: 0173443434
  • Minimum Length: 1
    Maximum Length: 100
    Pattern: ^[a-zA-Z0-9 ]+?$
    Emergency Contact Name * `null` if empty
    Example: Emmeline
  • Minimum Length: 1
    Maximum Length: 30
    Pattern: ^[0-9+-]*$
    Emergency Contact Phone Number * `null` if empty
    Example: +6239629999
  • Minimum Length: 1
    Maximum Length: 30
    Pattern: ^[0-9+-]*$
    Mobile Number * `null` if empty
    Example: 62-39629630
Nested Schema : maritalStatus
Type: object
Marital Status
Show Source
  • Minimum Length: 1
    Maximum Length: 6
    Pattern: ^[a-zA-Z0-9 _,?/.\-+* ~!@#$%&{}[]()=<>|^'":;@`]*$
    Marital Status Code
    Example: S
  • Marital Status Description
    Example: Single
Nested Schema : nationalityStruct
Type: object
Nationality
Show Source
  • Minimum Length: 1
    Maximum Length: 6
    Pattern: ^[ A-Za-z0-9,'_@./#&+-]*$
    Nationality Code
    Example: MY
  • Nationality Code Description
    Example: Malaysia
Nested Schema : passportDetailsResponse
Type: object
Passport Details
Show Source
Nested Schema : preferredLanguage
Type: object
Preferred Language
Show Source
  • Minimum Length: 1
    Maximum Length: 6
    Pattern: ^[a-zA-Z_0-9-! ]+$
    Preferred Language Code
    Example: EN
  • Preferred Language Description
    Example: English
Nested Schema : VIP
Type: object
VIP
Show Source
  • Maximum Length: 6
    Pattern: ^[a-zA-Z0-9 _,?/.\-+* ~!@#$%&{}[]()=<>|^'":;@`]*$
    VIP Code
    Example: S/VIP
  • VIP Description
    Example: SUPERVIP
Nested Schema : passportIssuedCountry
Type: object
Passport Issued Country
Show Source
  • Minimum Length: 1
    Maximum Length: 6
    Pattern: ^[ A-Za-z0-9,'_@./#&+-]*$
    Passport Issued Country Code
    Example: MY
  • Passport Issued Country Code Description
    Example: Malaysia

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":"Malformed JSON request"
}
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":"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
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 is 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":"Profile ID - 1002 is invalid"
}
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":"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
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

410 Response

Gone
Body ()
Root Schema : schema
Match All
Show Source
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
Body ()
Root Schema : schema
Match All
Show Source
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
Body ()
Root Schema : schema
Match All
Show Source
Example:
{
    "type":"http://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

501 Response

Not Implemented
Body ()
Root Schema : schema
Match All
Show Source
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
Body ()
Root Schema : schema
Match All
Show Source
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
Back to Top