Skip to main content
POST
Create Assignment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Admin assignment creation request.

userId
string<uuid>
required
shipId
string<uuid>
required
role
string
required
startDate
string<date> | null
endDate
string<date> | null

Response

Successful Response

Assignment with denormalized user/ship names for API responses.

id
string<uuid>
required
userId
string<uuid>
required
userName
string
required
userEmail
string
required
shipId
string<uuid>
required
shipName
string
required
role
string
required
startDate
string<date> | null
required
endDate
string<date> | null
required
isActive
boolean
required
shipImoNumber
string | null