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(required): integer
Profile Id
-
shipId(required): number
Ship Id
Crew Profile Object
Root Schema : Crew Profile Request
Type:
objectTitle:
Crew Profile RequestCrew Profile Request Body
Show Source
-
age:
integer(int32)
Minimum Value:
1Maximum Value:150AgeExample:25 -
birthNation:
string
Minimum Length:
1Maximum Length:6Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Birth Nation Code * `null` if emptyExample:US -
birthPlace:
string
Maximum Length:
50Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Birth PlaceExample:Kajang -
dateOfBirth:
string(date)
Birth DateExample:
2018-11-11 -
eyeColour:
string
Eye ColourExample:
Blue -
finNumber:
string
Maximum Length:
20Pattern:^[a-zA-Z0-9 ]+?$FIN Number * `null` if emptyExample:a1234 -
firstName:
string
Minimum Length:
1Maximum Length:40The first name of the guestExample:Kobe -
gender:
object gender
Gender
-
hairColour:
string
Hair ColourExample:
Blonde -
height:
string
HeightExample:
190 -
intoxication:
boolean
Is the guest intoxicated: * `true` - Intoxicated * `false` - Non-intoxicatedExample:
false -
lastName:
string
Minimum Length:
1Maximum Length:40The last name of the guestExample:James -
maritalStatus:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z0-9 _,?/.\-+* ~!@#$%&{}[]()=<>|^'":;@`]*$Marital Status CodeExample:S -
middleName:
string
Minimum Length:
1Maximum Length:20The middle name of the guestExample:Bean -
nationalId:
string
Minimum Length:
1Maximum Length:20Pattern:^[a-zA-Z0-9 ]*$National IdExample:22 -
nationality:
string
Country CodeExample:
US -
nationalityFlag:
string
Nationality FlagExample:
China -
otherFirstName:
string
Minimum Length:
1Maximum Length:80Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$Other First Name * `null` if emptyExample:Frost -
otherLastName:
string
Minimum Length:
1Maximum Length:100Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$Other Last Name * `null` if emptyExample:Francis -
passportDetails:
object passportDetailsRequest
Passport Details
-
photo:
string
PhotoExample:
/9j/4AAQSkZJRgABAQEASABIAAD== -
preferredLanguage1:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z_0-9-! ]+$Preferred Language CodeExample:EN -
preferredLanguage2:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z_0-9-! ]+$Preferred Language CodeExample:EN -
preferredLanguage3:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z_0-9-! ]+$Preferred Language CodeExample:EN -
privilegeLevel:
string
Award Level * `null` if emptyExample:
platinum -
salutation:
string
Minimum Length:
1Maximum Length:20The salutation of the guestExample:Mr. -
seamanBookDetails:
object seamanBookDetailsRequest
Seaman Book Details
-
smoke:
boolean
Is the guest a smoker: * `true` - Smoker * `false` - Non-smokerExample:
true -
weight:
string
WeightExample:
70
Nested Schema : gender
Type:
objectGender
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z0-9 ]+?$Gender CodeExample:M -
description:
string
Gender Code DescriptionExample:
Male
Nested Schema : passportDetailsRequest
Type:
objectPassport Details
Show Source
-
passportExpiryDate:
string(ISO 8601)
Passport Expiry DateExample:
2009-10-31 -
passportIssuedCountry:
string
Country CodeExample:
US -
passportIssuedDate:
string(date)
Passport Issued DateExample:
2018-11-11 -
passportIssuedPlace:
string
Maximum Length:
50Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Passport Issued PlaceExample:Shah Alam -
passportNumber:
string
Minimum Length:
1Maximum Length:20Pattern:^[a-zA-Z0-9 ]+?$Passport NumberExample:A145611
Nested Schema : seamanBookDetailsRequest
Type:
objectSeaman Book Details
Show Source
-
seamanBookExpiredDate:
string(ISO 8601)
Seaman Book Expired DateExample:
2009-10-31 -
seamanBookIssuedCountry:
string
Country CodeExample:
US -
seamanBookIssuedDate:
string(ISO 8601)
Seaman Book Issued DateExample:
2009-10-31 -
seamanBookIssuedPlace:
string
Passport Issued PlaceExample:
Kuala Lumpur -
seamanBookNumber:
string
Seaman Book NumberExample:
ABC12345678
Response
Supported Media Types
- application/hal+json
200 Response
OK
Root Schema : Crew Profile
Type:
objectTitle:
Crew ProfileCrew Profile Response
Show Source
-
accountCategory:
string
Allowed Values:
[ "PAX" ]accountCategoryExample:PAX -
age:
integer(int32)
Minimum Value:
1Maximum Value:150AgeExample:25 -
birthNation:
object birthNation
Birth Nation
-
birthPlace:
string
Maximum Length:
50Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Birth PlaceExample:Kajang -
dateOfBirth:
string(date)
Birth DateExample:
2018-11-11 -
eyeColour:
string
Eye ColourExample:
Blue -
finNumber:
string
Maximum Length:
20Pattern:^[a-zA-Z0-9 ]+?$FIN Number * `null` if emptyExample:a1234 -
firstName:
string
Minimum Length:
1Maximum Length:40The first name of the guestExample:Kobe -
gender:
object gender
Gender
-
hairColour:
string
Hair ColourExample:
Blonde -
height:
string
HeightExample:
190 -
intoxication:
boolean
Is the guest intoxicated: * `true` - Intoxicated * `false` - Non-intoxicatedExample:
false -
lastName:
string
Minimum Length:
1Maximum Length:40The last name of the guestExample:James -
links:
array links
-
maritalStatus:
object maritalStatus
Marital Status
-
middleName:
string
Minimum Length:
1Maximum Length:20The middle name of the guestExample:Bean -
nationalId:
string
Minimum Length:
1Maximum Length:20Pattern:^[a-zA-Z0-9 ]*$National IdExample:22 -
nationality:
object nationalityStruct
Nationality
-
nationalityFlag:
string
Nationality FlagExample:
China -
otherFirstName:
string
Minimum Length:
1Maximum Length:80Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$Other First Name * `null` if emptyExample:Frost -
otherLastName:
string
Minimum Length:
1Maximum Length:100Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$Other Last Name * `null` if emptyExample:Francis -
passportDetails:
object passportDetailsResponse
Passport Details
-
photo:
string
PhotoExample:
/9j/4AAQSkZJRgABAQEASABIAAD== -
preferredLanguage1:
object preferredLanguage
Preferred Language
-
preferredLanguage2:
object preferredLanguage
Preferred Language
-
preferredLanguage3:
object preferredLanguage
Preferred Language
-
privilegeLevel:
string
Award Level * `null` if emptyExample:
platinum -
profileId:
number
Minimum Length:
1Pattern:^[0-9]*$Profile IdExample:12345 -
profileType:
string
Profile TypeExample:
Crew -
salutation:
string
Minimum Length:
1Maximum Length:20The salutation of the guestExample:Mr. -
seamanBookDetails:
object seamanBookDetailsResponse
Seaman Book Details
-
smoke:
boolean
Is the guest a smoker: * `true` - Smoker * `false` - Non-smokerExample:
true -
weight:
string
WeightExample:
70
Nested Schema : birthNation
Type:
objectBirth Nation
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Birth Nation Code * `null` if emptyExample:US -
description:
string
Birth Nation Name * `null` if emptyExample:
United States
Nested Schema : gender
Type:
objectGender
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z0-9 ]+?$Gender CodeExample:M -
description:
string
Gender Code DescriptionExample:
Male
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:
objectMarital Status
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z0-9 _,?/.\-+* ~!@#$%&{}[]()=<>|^'":;@`]*$Marital Status CodeExample:S -
description:
string
Marital Status DescriptionExample:
Single
Nested Schema : nationalityStruct
Type:
objectNationality
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Nationality CodeExample:MY -
description:
string
Nationality Code DescriptionExample:
Malaysia
Nested Schema : passportDetailsResponse
Type:
objectPassport Details
Show Source
-
passportExpiryDate:
string(ISO 8601)
Passport Expiry DateExample:
2009-10-31 -
passportIssuedCountry:
object passportIssuedCountry
Passport Issued Country
-
passportIssuedDate:
string(date)
Passport Issued DateExample:
2018-11-11 -
passportIssuedPlace:
string
Maximum Length:
50Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Passport Issued PlaceExample:Shah Alam -
passportNumber:
string
Minimum Length:
1Maximum Length:20Pattern:^[a-zA-Z0-9 ]+?$Passport NumberExample:A145611
Nested Schema : preferredLanguage
Type:
objectPreferred Language
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[a-zA-Z_0-9-! ]+$Preferred Language CodeExample:EN -
description:
string
Preferred Language DescriptionExample:
English
Nested Schema : seamanBookDetailsResponse
Type:
objectSeaman Book Details
Show Source
-
seamanBookExpiredDate:
string(ISO 8601)
Seaman Book Expired DateExample:
2009-10-31 -
seamanBookIssuedCountry:
object seamanBookIssuedCountry
Passport Issued Country
-
seamanBookIssuedDate:
string(ISO 8601)
Seaman Book Issued DateExample:
2009-10-31 -
seamanBookIssuedPlace:
string
Passport Issued PlaceExample:
Kuala Lumpur -
seamanBookNumber:
string
Seaman Book NumberExample:
ABC12345678
Nested Schema : linksProfile
Type:
objectlinks detail
Show Source
-
method:
string
Example:
get -
rel:
string
Example:
self
Nested Schema : passportIssuedCountry
Type:
objectPassport Issued Country
Show Source
-
code:
string
Minimum Length:
1Maximum Length:6Pattern:^[ A-Za-z0-9,'_@./#&+-]*$Passport Issued Country CodeExample:MY -
description:
string
Passport Issued Country Code DescriptionExample:
Malaysia
Nested Schema : seamanBookIssuedCountry
Type:
objectPassport Issued Country
Show Source
-
code:
string
Country CodeExample:
US -
description:
string
Country NameExample:
Malaysia
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
410 Response
Gone
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
501 Response
Not Implemented
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source