POST api/CrewManagement/AddCrewMember
Add a new crew member to the packaging line.
Request Information
URI Parameters
None.
Body Parameters
PackagingLineCrewMemberBase| Name | Description | Type | Additional information |
|---|---|---|---|
| IdNo | integer |
None. |
|
| PackagingLineCrewIdNo | integer |
None. |
|
| EmployeeIdNo | integer |
None. |
|
| PackagingLineShiftRole | PackagingLineShiftRole |
None. |
|
| StartDateTime | date |
None. |
|
| EndDateTime | date |
None. |
|
| ObjectKeyStringWithVersion | string |
None. |
|
| VersionNo | integer |
None. |
|
| IsActive | boolean |
None. |
|
| LastModifiedBy | string |
None. |
|
| ObjectKeyString | string |
None. |
|
| PrimaryKey | Collection of Object |
None. |
|
| IsPrimaryKeyInitialized | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdNo": 1,
"PackagingLineCrewIdNo": 2,
"EmployeeIdNo": 3,
"PackagingLineShiftRole": 1,
"StartDateTime": "2025-11-05T15:07:34.3580802-06:00",
"EndDateTime": "2025-11-05T15:07:34.3580802-06:00",
"ObjectKeyStringWithVersion": "sample string 5",
"VersionNo": 6,
"IsActive": true,
"LastModifiedBy": "sample string 8",
"ObjectKeyString": "sample string 9",
"PrimaryKey": [
1
],
"IsPrimaryKeyInitialized": true
}
text/html
Sample:
{"IdNo":1,"PackagingLineCrewIdNo":2,"EmployeeIdNo":3,"PackagingLineShiftRole":1,"StartDateTime":"2025-11-05T15:07:34.3580802-06:00","EndDateTime":"2025-11-05T15:07:34.3580802-06:00","ObjectKeyStringWithVersion":"sample string 5","VersionNo":6,"IsActive":true,"LastModifiedBy":"sample string 8","ObjectKeyString":"sample string 9","PrimaryKey":[1],"IsPrimaryKeyInitialized":true}
Response Information
Resource Description
GenericTransactionResponse
GenericTransactionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ReturnedObject | Object |
None. |
|
| IsSuccessful |
Indicates if the transaction was successful or not. |
boolean |
None. |
| ReturnedMessages |
Contains a list of Informational, Warning, and/or Error messages regarding the outcome of the transaction. |
Collection of ReturnedMessage |
None. |
Response Formats
application/json, text/json
Sample:
{
"ReturnedObject": {},
"IsSuccessful": true,
"ReturnedMessages": null
}
text/html
Sample:
{"ReturnedObject":{},"IsSuccessful":true,"ReturnedMessages":null}