Update a crew profile by profile Id
put
/spms/v2/ships/{shipId}/profiles/crews/{profileId}
This is to update a crew profile details by profile Id
Request
Supported Media Types
- application/json
Path Parameters
-
profileId: integer
Profile Id
-
shipId: number
Ship Id
Crew Profile Object
Root Schema : Crew Profile Request
Type:
object
Title:
Crew Profile Request
Crew Profile Request Body
Show Source
-
age(optional):
integer(int32)
Minimum Value:
1
Maximum Value:150
AgeExample:25
-
birthNation(optional):
string
Minimum Length:
1
Maximum Length:3
Pattern:^[ A-Za-z0-9_@./#&+-]*$
Country CodeExample:US
-
birthPlace(optional):
string
Maximum Length:
50
Pattern:^[ A-Za-z0-9,'_@./#&+-]*$
Birth Place * `null` if emptyExample:KL
-
dateOfBirth(optional):
string(ISO 8601 (YYYY-MM-DD))
Date of BirthExample:
1970-02-15
-
eyeColour(optional):
string
Eye ColourExample:
Blue
-
finNumber(optional):
string
Maximum Length:
20
Pattern:^[a-zA-Z0-9 ]+?$
FIN Number * `null` if emptyExample:a1234
-
firstName(optional):
string
Minimum Length:
1
Maximum Length:40
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?\/.\-+*~!@#$%&{}[\]\(\)=|^'":;@`\\]*$
First name * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:Doe
-
gender(optional):
object gender
Gender
-
hairColour(optional):
string
Hair ColourExample:
Blonde
-
height(optional):
string
HeightExample:
190
-
intoxication(optional):
boolean
Is the guest intoxicated: * `true` - Intoxicated * `false` - Non-intoxicatedExample:
false
-
lastName(optional):
string
Minimum Length:
1
Maximum Length:40
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?\/.\-+*~!@#$%&{}[\]\(\)=|^'":;@`\\]*$
Last name * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:Jaden
-
maritalStatus(optional):
object maritalStatusCode
maritalStatusCode
-
middleName(optional):
string
Minimum Length:
1
Maximum Length:40
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?\/.\-+*~!@#$%&{}[\]\(\)=|^'":;@`\\]*$
Middle name * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:Jay
-
nationalId(optional):
string
Maximum Length:
20
Pattern:^[a-zA-Z0-9 ]+?$
National Id * `null` if emptyExample:1234
-
nationality(optional):
string
Minimum Length:
1
Maximum Length:6
Country Code * `null` if emptyExample:US
-
nationalityFlag(optional):
string
Nationality FlagExample:
China
-
otherFirstName(optional):
string
Other First NameExample:
Mäya
-
otherLastName(optional):
string
Other Last NameExample:
Wälters
-
passportDetails(optional):
object passportDetailsRequest
Passport Details
-
photo(optional):
string
PhotoExample:
https://[HOSTNAME]/resources/img_01.jpg
-
preferredLanguage1(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z_0-9-! ]+$
Preferred Language CodeExample:EN
-
preferredLanguage2(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z_0-9-! ]+$
Preferred Language CodeExample:EN
-
preferredLanguage3(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z_0-9-! ]+$
Preferred Language CodeExample:EN
-
privilegeLevel(optional):
string
Award Level * `null` if emptyExample:
platinum
-
salutation(optional):
string
SalutationExample:
Dr.
-
seamanBookDetails(optional):
object seamanBookDetailsRequest
Seaman Book Details
-
smoke(optional):
boolean
Is the guest a smoker: * `true` - Smoker * `false` - Non-smokerExample:
true
-
weight(optional):
string
WeightExample:
70
Nested Schema : gender
Type:
object
Gender
Show Source
-
code(optional):
string
Pattern:
^[FMX]$
Gender CodeExample:F
-
description(optional):
string
Gender NameExample:
Female
Nested Schema : maritalStatusCode
Type:
object
maritalStatusCode
Show Source
-
code(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z0-9 ]{1,6}$
Marital Status CodeExample:D
-
comments(optional):
string
Maximum Value:
4000
Account Category CommentsExample:The term profit and loss (P&L) statement refers to a financial statement that summarizes the revenues, costs, and expenses incurred during a specified period, usually a quarter or fiscal year. These records provide information about a companys ability or inability to generate profit by increasing revenue, reducing costs, or both. These statements are often presented on a cash or accrual basis.
-
description(optional):
string
Minimum Value:
1
Maximum Value:1000
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\'\\\":;@`]*$
Account Category DescriptionExample:Profit and Loss Account
-
id(optional):
string
Minimum Length:
1
Maximum Length:10
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Currency Exchange IdExample:12345
-
isEnabled(optional):
boolean
This is to indicate switch to enable / disable account category (default value: true) * `true` - Enable account category * `false` - Disable account categoryExample:
true
Nested Schema : passportDetailsRequest
Type:
object
Passport Details
Show Source
-
passportExpiryDate(optional):
string(ISO 8601 (YYYY-MM-DD))
Passport Expiry DateExample:
2025-02-25
-
passportIssuedCountry(optional):
string
Minimum Length:
1
Maximum Length:6
Country Code * `null` if emptyExample:US
-
passportIssuedDate(optional):
string(ISO 8601)
Passport Issued DateExample:
2009-10-31
-
passportIssuedPlace(optional):
string
Passport Issued PlaceExample:
Paramount
-
passportNumber(optional):
string
Minimum Length:
1
Maximum Length:20
Pattern:^[a-zA-Z0-9 _,?/.\-+* ~!@#$%&{}[]()=<>|^'":;@`]*$
Passport number * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:A123409982
Nested Schema : seamanBookDetailsRequest
Type:
object
Seaman Book Details
Show Source
-
seamanBookExpiredDate(optional):
string(ISO 8601)
Seaman Book Expired DateExample:
2009-10-31
-
seamanBookIssuedCountry(optional):
string
Minimum Length:
1
Maximum Length:6
Country Code * `null` if emptyExample:US
-
seamanBookIssuedDate(optional):
string(ISO 8601)
Seaman Book Issued DateExample:
2009-10-31
-
seamanBookIssuedPlace(optional):
string
Passport Issued PlaceExample:
Kuala Lumpur
-
seamanBookNumber(optional):
string
Seaman Book NumberExample:
ABC12345678
Response
Supported Media Types
- application/hal+json
200 Response
OK
Root Schema : Crew Profile
Type:
object
Title:
Crew Profile
Crew Profile Response
Show Source
-
accountCategory(optional):
object accountCategory
Account Category
-
age(optional):
integer(int32)
Minimum Value:
1
Maximum Value:150
AgeExample:25
-
birthNation(optional):
object birthNation
Birth Nation
-
birthPlace(optional):
string
Maximum Length:
50
Pattern:^[ A-Za-z0-9,'_@./#&+-]*$
Birth Place * `null` if emptyExample:KL
-
dateOfBirth(optional):
string(ISO 8601 (YYYY-MM-DD))
Date of BirthExample:
1970-02-15
-
eyeColour(optional):
string
Eye ColourExample:
Blue
-
finNumber(optional):
string
Maximum Length:
20
Pattern:^[a-zA-Z0-9 ]+?$
FIN Number * `null` if emptyExample:a1234
-
firstName(optional):
string
Minimum Length:
1
Maximum Length:40
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?\/.\-+*~!@#$%&{}[\]\(\)=|^'":;@`\\]*$
First name * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:Doe
-
gender(optional):
object gender
Gender
-
hairColour(optional):
string
Hair ColourExample:
Blonde
-
height(optional):
string
HeightExample:
190
-
intoxication(optional):
boolean
Is the guest intoxicated: * `true` - Intoxicated * `false` - Non-intoxicatedExample:
false
-
lastName(optional):
string
Minimum Length:
1
Maximum Length:40
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?\/.\-+*~!@#$%&{}[\]\(\)=|^'":;@`\\]*$
Last name * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:Jaden
-
links(optional):
array links
-
maritalStatus(optional):
object maritalStatus
Marital Status
-
middleName(optional):
string
Minimum Length:
1
Maximum Length:40
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?\/.\-+*~!@#$%&{}[\]\(\)=|^'":;@`\\]*$
Middle name * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:Jay
-
nationalId(optional):
string
Maximum Length:
20
Pattern:^[a-zA-Z0-9 ]+?$
National Id * `null` if emptyExample:1234
-
nationality(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[ A-Za-z0-9_@./#&+-]*$
Nationality code * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:US
-
nationalityFlag(optional):
string
Nationality FlagExample:
China
-
otherFirstName(optional):
string
Other First NameExample:
Mäya
-
otherLastName(optional):
string
Other Last NameExample:
Wälters
-
passportDetails(optional):
object passportDetailsResponse
Passport Details
-
photo(optional):
string
PhotoExample:
https://[HOSTNAME]/resources/img_01.jpg
-
preferredLanguage1(optional):
object preferredLanguage
Preferred Language
-
preferredLanguage2(optional):
object preferredLanguage
Preferred Language
-
preferredLanguage3(optional):
object preferredLanguage
Preferred Language
-
privilegeLevel(optional):
string
Award Level * `null` if emptyExample:
platinum
-
profileId(optional):
integer
Profile IDExample:
1234
-
profileType(optional):
string
Minimum Length:
1
Maximum Length:1
Pattern:^[PRCV]$
Profile typeExample:P
-
salutation(optional):
string
SalutationExample:
Dr.
-
seamanBookDetails(optional):
object seamanBookDetailsResponse
Seaman Book Details
-
smoke(optional):
boolean
Is the guest a smoker: * `true` - Smoker * `false` - Non-smokerExample:
true
-
weight(optional):
string
WeightExample:
70
Nested Schema : accountCategory
Type:
object
Account Category
Show Source
-
code(optional):
string
Minimum Value:
1
Maximum Value:6
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\'\\\":;@`]*$
Account Category codeExample:PROLOS
-
description(optional):
string
Account Category DescriptionExample:
Regular Guest
Nested Schema : birthNation
Type:
object
Birth Nation
Show Source
-
code(optional):
string
Minimum Length:
1
Maximum Length:3
Pattern:^[ A-Za-z0-9_@./#&+-]*$
Country CodeExample:US
-
description(optional):
string
Birth Nation Name * `null` if emptyExample:
United States
Nested Schema : gender
Type:
object
Gender
Show Source
-
code(optional):
string
Pattern:
^[FMX]$
Gender CodeExample:F
-
description(optional):
string
Gender NameExample:
Female
Nested Schema : links
Type:
Show Source
array
-
Array of:
object linksProfile
links detail
Example:
[
{
"href":"http://[HOSTNAME]/spms/v2/ships/186000000117/profiles/crews/1001/crewEmployments",
"method":"get",
"operationId":"getCrewEmployment"
},
{
"href":"http://[HOSTNAME]/spms/v2/ships/186000000117/profiles/crew/1001/crewSafetyAssignments",
"method":"get",
"operationId":"getCrewSafetyAssignment"
},
{
"href":"http://[HOSTNAME]/spms/v2/ships/186000000117/profile/1001/addresses/home",
"method":"get",
"operationId":"getHomeAddress"
},
{
"href":"http://[HOSTNAME]/spms/v2/ships/186000000117/profile/1001/addresses/emergencyContact ",
"method":"get",
"operationId":"getEmergencyContact"
}
]
Nested Schema : maritalStatus
Type:
object
Marital Status
Show Source
-
code(optional):
object maritalStatusCode
maritalStatusCode
-
description(optional):
string
Marital Status DescriptionExample:
Single
Nested Schema : passportDetailsResponse
Type:
object
Passport Details
Show Source
-
passportExpiryDate(optional):
string(ISO 8601 (YYYY-MM-DD))
Passport Expiry DateExample:
2025-02-25
-
passportIssuedCountry(optional):
object passportIssuedCountry
Passport Issued Country
-
passportIssuedDate(optional):
string(ISO 8601)
Passport Issued DateExample:
2009-10-31
-
passportIssuedPlace(optional):
string
Passport Issued PlaceExample:
Paramount
-
passportNumber(optional):
string
Minimum Length:
1
Maximum Length:20
Pattern:^[a-zA-Z0-9 _,?/.\-+* ~!@#$%&{}[]()=<>|^'":;@`]*$
Passport number * `Optional` (Do not provide if not in use) * `null` if searching `null` * For all Profile TypesExample:A123409982
Nested Schema : preferredLanguage
Type:
object
Preferred Language
Show Source
-
code(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z_0-9-! ]+$
Preferred Language CodeExample:EN
-
description(optional):
string
Preferred Language DescriptionExample:
English
Nested Schema : seamanBookDetailsResponse
Type:
object
Seaman Book Details
Show Source
-
seamanBookExpiredDate(optional):
string(ISO 8601)
Seaman Book Expired DateExample:
2009-10-31
-
seamanBookIssuedCountry(optional):
object seamanBookIssuedCountry
Passport Issued Country
-
seamanBookIssuedDate(optional):
string(ISO 8601)
Seaman Book Issued DateExample:
2009-10-31
-
seamanBookIssuedPlace(optional):
string
Passport Issued PlaceExample:
Kuala Lumpur
-
seamanBookNumber(optional):
string
Seaman Book NumberExample:
ABC12345678
Nested Schema : linksProfile
Type:
object
links detail
Show Source
-
method(optional):
string
Example:
get
-
rel(optional):
string
Example:
self
Nested Schema : maritalStatusCode
Type:
object
maritalStatusCode
Show Source
-
code(optional):
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z0-9 ]{1,6}$
Marital Status CodeExample:D
-
comments(optional):
string
Maximum Value:
4000
Account Category CommentsExample:The term profit and loss (P&L) statement refers to a financial statement that summarizes the revenues, costs, and expenses incurred during a specified period, usually a quarter or fiscal year. These records provide information about a companys ability or inability to generate profit by increasing revenue, reducing costs, or both. These statements are often presented on a cash or accrual basis.
-
description(optional):
string
Minimum Value:
1
Maximum Value:1000
Pattern:^[a-zA-Z0-9 _,\\?/\\.\\-\\\\+\\*\n~!@#$%&{}\\[\\]()=<>\\|\\^\\'\\\":;@`]*$
Account Category DescriptionExample:Profit and Loss Account
-
id(optional):
string
Minimum Length:
1
Maximum Length:10
Pattern:^[a-zA-ZÀ-ÖØ-öø-ÿ0-9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Currency Exchange IdExample:12345
-
isEnabled(optional):
boolean
This is to indicate switch to enable / disable account category (default value: true) * `true` - Enable account category * `false` - Disable account categoryExample:
true
Nested Schema : passportIssuedCountry
Type:
object
Passport Issued Country
Show Source
-
code(optional):
string
Minimum Length:
1
Maximum Length:6
Country Code * `null` if emptyExample:US
-
description(optional):
string
Country NameExample:
Malaysia
Nested Schema : seamanBookIssuedCountry
Type:
object
Passport Issued Country
Show Source
-
code(optional):
string
Minimum Length:
1
Maximum Length:6
Country Code * `null` if emptyExample:US
-
description(optional):
string
Country NameExample:
Malaysia
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":"Malformed JSON request"
}
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":"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
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
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":"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":"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
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