Skip to main content
POST
/
api
/
v1
/
assignments
/
bulk
/
update
Bulk Update Assignments
curl --request POST \
  --url https://api.seamind.xyz/api/v1/assignments/bulk/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignmentIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "role": "<string>",
  "startDate": "2023-12-25",
  "dueDate": "2023-12-25",
  "endDate": "2023-12-25",
  "clearFields": [
    "<string>"
  ]
}
'
{
  "updatedCount": 123,
  "assignments": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userName": "<string>",
      "userEmail": "<string>",
      "shipId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "shipName": "<string>",
      "shipImoNumber": "<string>",
      "role": "<string>",
      "startDate": "2023-12-25",
      "dueDate": "2023-12-25",
      "endDate": "2023-12-25",
      "isActive": true
    }
  ],
  "failedAssignmentIds": [],
  "errors": []
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request to bulk update multiple assignments.

assignmentIds
string<uuid>[]
required
role
string | null
startDate
string<date> | null
dueDate
string<date> | null
endDate
string<date> | null
clearFields
string[] | null

Response

Successful Response

Response from bulk assignment update.

updatedCount
integer
required
assignments
AssignmentDetailDTO · object[]
required
failedAssignmentIds
string<uuid>[]
errors
string[]