Register a ship
Adds a ship to the harbor's register.
POST
/ships
Warning
A ship's type cannot be changed once it is registered.
Authorization
harborAuth
Authorization: Bearer <token>
Get a token the way a real API hands one out. The client ID is harbor-docs, and for client credentials the secret is harbor-docs-secret.
bearerAuth
Authorization: Bearer <token>
Or skip signing in. Any token will do here. Without one the answer is a 401.
Header parameters
Request body
application/json
Required
Responses
201
The ship as registered.
application/json
name*
string
Range 2 ≤ value ≤ 80
id?
integer
Format int64
captain?
object
Whoever is in command right now.
escort?
Ship
registeredAt?
string
Format date-time
Callbacks
Requests the API sends back once this one is made, to the address shown.