PUT api/v1/shifttrades/ApproveTradeRequest
Approve staff trade assignment request This is an asynchronous service.
Request Information
URI Parameters
None.
Body Parameters
ApproveShiftTradeRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ExistingAssignmentId | globally unique identifier |
Required |
|
| RequestForShiftTradeId | globally unique identifier |
Required |
|
| ApprovalType | integer |
Required |
|
| Comments | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ExistingAssignmentId": "2ad607be-407f-437e-9a8c-76ca5d71b321",
"RequestForShiftTradeId": "5482d606-fed3-41dd-8720-0584b9ebd3ba",
"ApprovalType": 3,
"Comments": "sample string 4"
}
Response Information
Resource Description
ApiResponseModelOfApproveShiftTradeReturnModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfApproveShiftTradeReturnModel |
None. |
|
| Errors | Collection of string |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"PageSize": 1,
"Page": 2,
"TotalPages": 3,
"TotalResults": 4,
"Results": {
"AssignmentId": "940d8a0b-cf00-42b9-ae80-b5b872d5b577",
"SourceDeptApproverUserId": 1,
"DestinationDeptApproverUserId": 1
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}