> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seamind.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Ship

> Create a new ship in the admin's organization.

Requires admin role.



## OpenAPI

````yaml /openapi.json post /api/v1/shared/ships
openapi: 3.1.0
info:
  title: Seamind Backend
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/shared/ships:
    post:
      tags:
        - shared-ships
      summary: Create Ship
      description: |-
        Create a new ship in the admin's organization.

        Requires admin role.
      operationId: create_ship_api_v1_shared_ships_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShipAdminCreateDTO'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/app__domain__ship__ShipDetailDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ShipAdminCreateDTO:
      properties:
        name:
          type: string
          title: Name
        imoNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Imonumber
        mmsiNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Mmsinumber
        callSign:
          anyOf:
            - type: string
            - type: 'null'
          title: Callsign
        flagName:
          anyOf:
            - type: string
            - type: 'null'
          title: Flagname
        portOfRegistry:
          anyOf:
            - type: string
            - type: 'null'
          title: Portofregistry
      type: object
      required:
        - name
      title: ShipAdminCreateDTO
      description: Ship creation request - org_id is auto-set from admin's org.
    app__domain__ship__ShipDetailDTO:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        imoNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Imonumber
        mmsiNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Mmsinumber
        callSign:
          anyOf:
            - type: string
            - type: 'null'
          title: Callsign
        flagName:
          anyOf:
            - type: string
            - type: 'null'
          title: Flagname
        portOfRegistry:
          anyOf:
            - type: string
            - type: 'null'
          title: Portofregistry
        crewCount:
          type: integer
          title: Crewcount
          default: 0
        createdAt:
          type: string
          format: date-time
          title: Createdat
      type: object
      required:
        - id
        - name
        - createdAt
      title: ShipDetailDTO
      description: Ship with enriched data for API responses (includes crew_count).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````