Skip to main content
PATCH
/
api
/
v1
/
crew
/
users
/
{user_id}
/
profile
Upsert Crew Profile
curl --request PATCH \
  --url https://api.example.com/api/v1/crew/users/{user_id}/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dateOfBirth": "2023-12-25",
  "placeOfBirth": "<string>",
  "nationality": "<string>",
  "gender": "<string>",
  "religion": "<string>",
  "maritalStatus": "<string>",
  "weddingDate": "2023-12-25",
  "employeeId": "<string>",
  "position": "<string>",
  "shipType": "<string>",
  "contractGroup": "<string>",
  "payscale": "<string>",
  "internationalAirport": "<string>",
  "domesticAirport": "<string>",
  "homeAddress": "<string>",
  "phone": "<string>",
  "linkedinUrl": "<string>",
  "facebookUrl": "<string>",
  "instagramUrl": "<string>",
  "languages": [
    "<string>"
  ],
  "drivingLicense": "<string>"
}
'
{
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "dateOfBirth": "2023-12-25",
  "placeOfBirth": "<string>",
  "nationality": "<string>",
  "gender": "<string>",
  "religion": "<string>",
  "maritalStatus": "<string>",
  "weddingDate": "2023-12-25",
  "employeeId": "<string>",
  "position": "<string>",
  "shipType": "<string>",
  "contractGroup": "<string>",
  "payscale": "<string>",
  "internationalAirport": "<string>",
  "domesticAirport": "<string>",
  "homeAddress": "<string>",
  "phone": "<string>",
  "linkedinUrl": "<string>",
  "facebookUrl": "<string>",
  "instagramUrl": "<string>",
  "languages": [],
  "drivingLicense": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string<uuid>
required

Body

application/json

Fields the API accepts for create-or-update. Lazy provisioning: the first PATCH for a user creates the row; subsequent PATCHes update in place. All fields are optional partial updates.

dateOfBirth
string<date> | null
placeOfBirth
string | null
nationality
string | null
gender
string | null
religion
string | null
maritalStatus
string | null
weddingDate
string<date> | null
employeeId
string | null
position
string | null
shipType
string | null
contractGroup
string | null
payscale
string | null
internationalAirport
string | null
domesticAirport
string | null
homeAddress
string | null
phone
string | null
linkedinUrl
string | null
facebookUrl
string | null
instagramUrl
string | null
languages
string[] | null
drivingLicense
string | null

Response

Successful Response

API response shape (camelCase). Same fields as the DB DTO; the response form keeps the surface stable even if internal naming evolves.

userId
string<uuid>
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
dateOfBirth
string<date> | null
placeOfBirth
string | null
nationality
string | null
gender
string | null
religion
string | null
maritalStatus
string | null
weddingDate
string<date> | null
employeeId
string | null
position
string | null
shipType
string | null
contractGroup
string | null
payscale
string | null
internationalAirport
string | null
domesticAirport
string | null
homeAddress
string | null
phone
string | null
linkedinUrl
string | null
facebookUrl
string | null
instagramUrl
string | null
languages
string[]
drivingLicense
string | null