cURL
curl --request POST \ --url https://api.seamind.xyz/api/v1/assignments/bulk/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "shipId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "role": "<string>", "startDate": "2023-12-25", "dueDate": "2023-12-25", "endDate": "2023-12-25" } '
{ "createdCount": 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 } ], "skippedUserIds": [] }
Bulk create assignments for multiple users to the same ship.
Requires admin role.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request to bulk create assignments for multiple users.
Successful Response
Response from bulk assignment creation.
Show child attributes