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": "c67f70b5-f172-4a16-8f14-659c28e39b4a",
"AcceptorAssignmentId": "7b345f8b-dea4-40ea-a707-d67c395ddfa1",
"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": "f30c2446-4e24-4960-9650-e3d28f20c8de",
"AccepterAsstinmentId": "28a83634-1f9a-41ad-9f84-36efcff2e874",
"NewRequesterAssignmentId": "c3b65b48-127f-4f62-bfb1-c8c97e2a84a9",
"NewAccepterAsstinmentId": "a27da471-a79b-4a7c-8159-996859e40c01",
"AutoApproval": true,
"ManagerApproved": true,
"ManagerDenied": true,
"DualSignOffRequired": true,
"FirstApproverUserName": "sample string 8",
"SecondApproverUserName": "sample string 9",
"Comments": "sample string 10",
"IsCanceled": true
}