cURL
curl --request POST \ --url https://api.seamind.xyz/api/v1/ships/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "imoNumber": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "imoNumber": "<string>", "createdAt": "2023-11-07T05:31:56Z", "crewCount": 0 }
Create a new ship in the admin’s organization.
Requires admin role.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Ship creation request - org_id is auto-set from admin's org.
Successful Response
Ship with enriched data for API responses (includes crew_count).