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": "be9c3fcc-5fb5-4e44-bd59-b788f9249db1",
"AcceptorAssignmentId": "bd96cf2f-dd31-4df4-8fbd-00226299bb04",
"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": "2cc9acc5-86e7-4518-b48a-548d46066d3d",
"AccepterAsstinmentId": "d3c30d83-a345-43da-abc7-0101537fc379",
"NewRequesterAssignmentId": "e90a7de9-298a-4128-b1b2-08547008efa8",
"NewAccepterAsstinmentId": "769798fc-1b70-4c57-86ad-e976fe805dc0",
"AutoApproval": true,
"ManagerApproved": true,
"ManagerDenied": true,
"DualSignOffRequired": true,
"FirstApproverUserName": "sample string 8",
"SecondApproverUserName": "sample string 9",
"Comments": "sample string 10",
"IsCanceled": true
}