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": "4fcd0fe2-498d-4833-8965-9d560c62c890",
"AcceptorAssignmentId": "9bc0d49e-241c-4476-af10-e509eff65cce",
"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": "1a7badf6-6d9f-4daa-8c87-1e39126d3b47",
"AccepterAsstinmentId": "60b4fc5c-b7da-4639-a380-b0dc8a24f78d",
"NewRequesterAssignmentId": "1c631d73-b677-43d9-b268-d703e59a9139",
"NewAccepterAsstinmentId": "c10f3fb2-c844-416e-9417-b7e712ef17ca",
"AutoApproval": true,
"ManagerApproved": true,
"ManagerDenied": true,
"DualSignOffRequired": true,
"FirstApproverUserName": "sample string 8",
"SecondApproverUserName": "sample string 9",
"Comments": "sample string 10",
"IsCanceled": true
}