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": "1a171f98-3b22-4c98-aadc-1a0a7fea4079",
"AcceptorAssignmentId": "4adba25e-d456-4169-a415-cdf3a829a230",
"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": "533cc3d7-05da-4061-b77f-b752b2ff6aea",
"AccepterAsstinmentId": "36c230f8-1f47-4ea2-8512-afc70d3b178c",
"NewRequesterAssignmentId": "0e6bbd9f-1498-41b7-82f8-5f9bc2c66240",
"NewAccepterAsstinmentId": "0787d7ee-14a2-4792-b54a-68a7c635c3df",
"AutoApproval": true,
"ManagerApproved": true,
"ManagerDenied": true,
"DualSignOffRequired": true,
"FirstApproverUserName": "sample string 8",
"SecondApproverUserName": "sample string 9",
"Comments": "sample string 10",
"IsCanceled": true
}