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": "634a4a3c-c6d7-441b-aa74-e54033d17b24",
"RequestForShiftTradeId": "a31c8f7e-2c2e-4a5d-89b2-a1edc9b742fd",
"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": "75fa7043-919e-46b5-9a5c-cb9a37c201ea",
"SourceDeptApproverUserId": 1,
"DestinationDeptApproverUserId": 1
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}