Create new minor by guardian profile ID
post
/spms/v2/ships/{shipId}/profile/{profileId}/minors
This is to assign a minor profile a guest profile as guardian
Request
Supported Media Types
- application/json
Path Parameters
-
profileId(required): integer
Profile ID
-
shipId(required): number
Ship Id
Guardian Minor Post Object
Nested Schema : minorDetails
Type:
Show Source
array
-
Array of:
number
Minimum Length:
1
Pattern:^[0-9]*$
Profile IdExample:12345
Example:
[
{
"profileId":"440"
},
{
"profileId":"441"
}
]
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : GuardianMinorPOSTResponseObject
Type:
object
Guardian Minor POST Response Object
Show Source
-
bookingNumber:
string
Minimum Length:
1
Pattern:^[a-zA-Z0-9]+$
Booking NumberExample:123456789
-
firstName:
string
Minimum Length:
1
Maximum Length:40
The first name of the guestExample:Kobe
-
lastName:
string
Minimum Length:
1
Maximum Length:40
The last name of the guestExample:James
-
middleName:
string
Minimum Length:
1
Maximum Length:20
The middle name of the guestExample:Bean
-
minorDetails:
array minorDetails
-
otherFirstName:
string
Minimum Length:
1
Maximum Length:80
Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$
Other First Name * `null` if emptyExample:Frost
-
otherLastName:
string
Minimum Length:
1
Maximum Length:100
Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$
Other Last Name * `null` if emptyExample:Francis
-
photo:
string
PhotoExample:
/9j/4AAQSkZJRgABAQEASABIAAD==
-
profileId:
number
Minimum Length:
1
Pattern:^[0-9]*$
Profile IdExample:12345
-
profileType:
string
Profile TypeExample:
Crew
-
salutation:
string
Minimum Length:
1
Maximum Length:20
The salutation of the guestExample:Mr.
-
stateroomNumber:
string
Minimum Length:
1
Maximum Length:20
Pattern:^[a-zA-Z0-9- ]*$
stateroomNumberExample:1001
Nested Schema : minorDetails
Type:
Show Source
array
-
Array of:
object minorDetails
Minor Details
Example:
[
{
"profileId":"440",
"profileType":"P",
"lastName":"James",
"firstName":"Bond",
"middleName":"Big",
"otherLastName":"Jennifer",
"otherFirstName":"Crawl",
"salutation":"Mr",
"stateroomNumber":"1001",
"bookingNumber":"0123",
"photo":"https://oracle.com/resources/james.jpg",
"age":"11"
},
{
"profileId":"441",
"profileType":"P",
"lastName":"Jessica",
"firstName":"Alba",
"middleName":"Small",
"otherLastName":"Nick",
"otherFirstName":"Wild",
"salutation":"Ms",
"stateroomNumber":"1002",
"bookingNumber":"0231",
"photo":"https://oracle.com/resources/jessica.jpg",
"age":"22"
}
]
Nested Schema : minorDetails
Type:
object
Minor Details
Show Source
-
age:
integer(int32)
Minimum Value:
1
Maximum Value:150
AgeExample:25
-
bookingNumber:
string
Minimum Length:
1
Pattern:^[a-zA-Z0-9]+$
Booking NumberExample:123456789
-
firstName:
string
Minimum Length:
1
Maximum Length:40
The first name of the guestExample:Kobe
-
lastName:
string
Minimum Length:
1
Maximum Length:40
The last name of the guestExample:James
-
middleName:
string
Minimum Length:
1
Maximum Length:20
The middle name of the guestExample:Bean
-
otherFirstName:
string
Minimum Length:
1
Maximum Length:80
Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$
Other First Name * `null` if emptyExample:Frost
-
otherLastName:
string
Minimum Length:
1
Maximum Length:100
Pattern:^[ a-zA-Z0-9_.À-Ⰰ-]*$
Other Last Name * `null` if emptyExample:Francis
-
photo:
string
PhotoExample:
/9j/4AAQSkZJRgABAQEASABIAAD==
-
profileId:
number
Minimum Length:
1
Pattern:^[0-9]*$
Profile IdExample:12345
-
profileType:
string
Profile TypeExample:
Crew
-
salutation:
string
Minimum Length:
1
Maximum Length:20
The salutation of the guestExample:Mr.
-
stateroomNumber:
string
Minimum Length:
1
Maximum Length:20
Pattern:^[a-zA-Z0-9- ]*$
stateroomNumberExample:1001
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 was 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":"Ship Id was 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":"Minor profile already assigned to this profile id"
}
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":"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