POST api/v1/staffshifttrades/Approve
Manager Approve StaffShiftTrade
Request Information
URI Parameters
None.
Body Parameters
ManageStaffShiftTradeRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StaffShiftTradeRequestId | integer |
Required |
|
| ActionType | integer |
Required |
|
| Comments | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"StaffShiftTradeRequestId": 1,
"ActionType": 2,
"Comments": "sample string 3"
}
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": "c0b08533-3245-42d6-834e-4281c672d1c9",
"AccepterAsstinmentId": "3301950e-a229-463c-b16a-13e600dd80c6",
"NewRequesterAssignmentId": "c3f37e2b-3138-4468-9384-e0a77288a90f",
"NewAccepterAsstinmentId": "97b27254-e735-491b-b84d-bd3b9e24b72a",
"AutoApproval": true,
"ManagerApproved": true,
"ManagerDenied": true,
"DualSignOffRequired": true,
"FirstApproverUserName": "sample string 8",
"SecondApproverUserName": "sample string 9",
"Comments": "sample string 10",
"IsCanceled": true
}