POST api/v1/staffshifttrades
Create a new StaffShiftTradeMode
Request Information
URI Parameters
None.
Body Parameters
StaffShiftTradeRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| RequestorAssignmentId | globally unique identifier |
Required |
|
| AcceptorAssignmentId | globally unique identifier |
Required |
|
| IsAutoApprove | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"RequestorAssignmentId": "5b4d61ee-8daa-43f6-b278-31ba5e15d0e7",
"AcceptorAssignmentId": "44f3976e-3144-4603-a97f-19fefc953b91",
"IsAutoApprove": true
}
Response Information
Resource Description
StaffShiftTradeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StaffShiftTradeId | integer |
Required |
|
| RequesterAssignmentId | globally unique identifier |
Required |
|
| AccepterAsstinmentId | globally unique identifier |
Required |
|
| NewRequesterAssignmentId | globally unique identifier |
None. |
|
| NewAccepterAsstinmentId | globally unique identifier |
None. |
|
| AutoApproval | boolean |
Required |
|
| ManagerApproved | boolean |
Required |
|
| ManagerDenied | boolean |
Required |
|
| DualSignOffRequired | boolean |
Required |
|
| FirstApproverUserName | string |
String length: inclusive between 0 and 20 |
|
| SecondApproverUserName | string |
String length: inclusive between 0 and 20 |
|
| Comments | string |
String length: inclusive between 0 and 500 |
|
| IsCanceled | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"StaffShiftTradeId": 1,
"RequesterAssignmentId": "bb73eb7d-66af-4b71-8e10-cb88f733898d",
"AccepterAsstinmentId": "9ef4b756-357c-4aec-b65a-c4b90fa1a482",
"NewRequesterAssignmentId": "1c61c14c-48b8-431e-afd4-20bee1e7400f",
"NewAccepterAsstinmentId": "f71b3f2a-8a90-4fc9-ae0e-1d60fa881c87",
"AutoApproval": true,
"ManagerApproved": true,
"ManagerDenied": true,
"DualSignOffRequired": true,
"FirstApproverUserName": "sample string 8",
"SecondApproverUserName": "sample string 9",
"Comments": "sample string 10",
"IsCanceled": true
}