Request - crew member details
POST /ship/ShpOWZxvR3mxMndyC2aJ3A /crew HTTP/1.1
Authorization: Bearer KiMwscRpnoSOQwTm
Content-Type: application/json
Accept: application/json
{
"name": "Long John Silver",
"rank": "Pirate captain",
"born": {
"town": "Bristol",
"year": 1883
},
"familiar": {
"type": "parrot",
"name": "Captain Flint"
}
}
Ship ID - a base46url -encoded UUID that uniquely identifies the ship
Developer-specific API key that grants access to update a single ship, until its expiry date
This API uses resource representation formats other than JSON, and uses content negotiation to provide more specific errors for developers who get content types mixed up
Error response - ship not found
HTTP/1.1 404 Not Found
Content-Type: application/problem+json
Content-Language: en
{
"title": "Ship not found",
"detail": "No ship with ID ‘ShpOWZxvR3mxMndyC2aJ3A’",
"ship_id": "ShpOWZxvR3mxMndyC2aJ3A"
}