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": "742f6861-df6e-4a94-9d7f-973d2f837976",
"RequestForShiftTradeId": "1a6af1c6-ed39-44b0-a1d9-ecfec4aacb1e",
"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": "b99cc13b-b0c8-4dcf-8dcb-b30b0900499f",
"SourceDeptApproverUserId": 1,
"DestinationDeptApproverUserId": 1
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}