Pirates API

Download OpenAPI specification:Download

Add a pirate to a ship’s crew

Assigns a pirate to a ship, creating a new pirate resource with basic metadata.

Authorizations:
Bearer
path Parameters
id
required
string
Example: ShpOWZxvR3mxMndyC2aJ3A

Ship ID

Request Body schema: application/json

Pirate metadata - crew member details

any

Responses

Request samples

Content type
application/json
{
  • "name": "Long John Silver",
  • "rank": "Pirate captain",
  • "born": {
    },
  • "familiar": {
    }
}

Response samples

Content type
application/problem+json
Example
null