Create a new Lifeboat record
post
/spms/v2/ships/{shipId}/configurations/safety/lifeBoats
This is to create a new Lifeboat record
Request
Supported Media Types
- application/json
Path Parameters
-
shipId: integer
ship Id
Lifeboat Object
Root Schema : Lifeboat Create
Type:
object
Title:
Lifeboat Create
The Lifeboat is executed successfully
Show Source
-
boatSide(optional):
string
Minimum Length:
0
Maximum Length:6
Which Side The Boat Is On. Linked to TYP_MSD.TYP_ART (this property only available if Advance Safety Drill is enabled in par)Example:Sside
-
launchSequence:
integer
Minimum Length:
0
Maximum Length:999
Launch sequence (allow integer value only)Example:2
-
lifeBoatCapacity(optional):
integer
Minimum Length:
0
Maximum Length:9999
Pattern:^[0-9]*$
Maximum boat capacity (allow integer value only)Example:20
-
lifeBoatDescription:
string
Minimum Length:
1
Maximum Length:50
Pattern:^[a-zA-Z0-9 _,\?\/\.\-\\+\*\n~!@#$%&\{\}\[\]\(\)=<>\|^'":;`]*$
Long name of boatExample:Lifeboat 02
-
lifeBoatName:
string
Minimum Length:
1
Maximum Length:6
Pattern:^[a-zA-Z0-9 _,\?\/\.\-\\+\*\n~!@#$%&\{\}\[\]\(\)=<>\|^'":;`]*$
Lifeboat short nameExample:LB02
-
lifeBoatRemark(optional):
string
Minimum Length:
0
Maximum Length:4000
Pattern:^[a-zA-Z0-9 _,\?\/\.\-\\+\*\n~!@#$%&\{\}\[\]\(\)=<>\|^'":;`]*$
Additional remarks for the boatExample:LB Remark
-
lifeBoatType(optional):
string
Minimum Length:
0
Maximum Length:6
Type of boat. Linked to TYP_BRT.TYP_ARTExample:LB
-
maxCertifiedCapacity(optional):
integer
Minimum Length:
0
Maximum Length:9999
Pattern:^[0-9]*$
Maximum certified capacity (this property only available if Advance Safety Drill is disabled in par. Allow integer value only)Example:2
-
minCrewWithCPSCRequired(optional):
integer
Minimum Length:
0
Maximum Length:9999
Pattern:^[0-9]*$
Required minimum number of crew with CPSC certificates in boat (allow integer value only)Example:2
-
musterStationRalfCrane:
integer
Minimum Length:
0
Maximum Length:999
Muster Station Raft Crane (allow integer value only)Example:1
-
noOfCrewAssigned(optional):
integer
Minimum Length:
0
Maximum Length:9999
Pattern:^[0-9]*$
Number of crew assigned to boat (allow integer value only)Example:2
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : Lifeboat Configuration List
Type:
object
Title:
Lifeboat Configuration List
The Lifeboat Configuration is executed successfully
Show Source
-
boatSide(optional):
string
Which Side The Boat Is On. Linked to TYP_MSD.TYP_ART (this property only available if Advance Safety Drill is enabled in par)Example:
SSide
-
launchSequence(optional):
integer
Launch sequenceExample:
2
-
lifeBoatCapacity(optional):
integer
Maximum boat capacityExample:
20
-
lifeBoatDescription(optional):
string
Long name of boatExample:
Lifeboat 02
-
lifeBoatId(optional):
integer
Unique Boat IdentifierExample:
2
-
lifeBoatName(optional):
string
Lifeboat Short NameExample:
LB02
-
lifeBoatRemark(optional):
string
Additional remarks for the boatExample:
built with Malaysia rubber
-
lifeBoatType(optional):
string
Type of boat. Linked to TYP_BRT.TYP_ARTExample:
LB
-
maxCertifiedCapacity(optional):
integer
Maximum certified capacity (this property only available if Advance Safety Drill is disabled in par)Example:
2
-
minCrewWithCPSCRequired(optional):
integer
Required minimum number of crew with CPSC certificates in boatExample:
2
-
musterStationRalfCrane(optional):
integer
Muster Station Raft CraneExample:
1
-
noOfCrewAssigned(optional):
integer
Number of crew assigned to boatExample:
2
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":[
{
"errorPath":"lifeBoatName",
"message":"must not be null"
},
{
"errorPath":"lifeBoatDescription",
"message":"must not be null"
}
]
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorized",
"detail":"Valid token is required to access this resource"
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource is forbidden"
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
"title":"Not Found",
"detail":"This resource path does not exist"
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations 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 : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Max certified capacity cannot be saved because parameter advanced safety drill is disabled."
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
409 Response
Conflict
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10",
"title":"Conflict",
"detail":"Lifeboat name already exists"
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type Not supported"
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://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 : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
501 Response
Not Implemented
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations 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 : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Lifeboat Configurations Error Response
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service Unavailable. Try again later"
}
Nested Schema : Lifeboat Configurations Error Response
Type:
object
Title:
Lifeboat Configurations Error Response
Lifeboat Configurations Error Response returned when encountered error
Show Source