POST api/mywork/RejectUpdate?TaskId={TaskId}
Reject a task update
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| TaskId | globally unique identifier |
Required |
Body Parameters
RejectUpdateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Comments | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Comments": "sample string 1"
}
Response Information
Resource Description
WorkPlanTask| Name | Description | Type | Additional information |
|---|---|---|---|
| WorkTypeId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Created | date |
None. |
|
| Modified | date |
None. |
|
| Author | string |
None. |
|
| Editor | string |
None. |
|
| AssignedTo | Collection of globally unique identifier |
None. |
|
| NonLaborAssignments | Collection of TaskNonLaborAssignment |
None. |
|
| Assignments | Collection of TaskAssignment |
None. |
|
| ParentId | globally unique identifier |
None. |
|
| WorkTypeParentId | globally unique identifier |
None. |
|
| WorkTypeIndex | integer |
None. |
|
| Fields | Dictionary of string [key] and Object [value] |
None. |
|
| Index | integer |
None. |
|
| Complete | boolean |
None. |
|
| Comments | Collection of TaskComment |
None. |
|
| StartDate | date |
None. |
|
| DueDate | date |
None. |
|
| TaskScheduleType | TaskType |
None. |
|
| StatusUpdate | StatusUpdateClass |
None. |
|
| LastComment | date |
None. |
|
| IsScheduled | boolean |
None. |
|
| Integration | TaskIntegrationInfo |
None. |
|
| WorkPlanId | globally unique identifier |
None. |
|
| id | globally unique identifier |
None. |
|
| ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"WorkTypeId": "25d835d4-f390-4327-ab79-c6b85cdef080",
"Name": "sample string 1",
"Created": "2025-11-06T06:48:40.4615764+00:00",
"Modified": "2025-11-06T06:48:40.4615764+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"b42a14f0-6a61-4ca9-bf7a-6a83c38d2827",
"7ef5533d-2fd0-4bae-a389-b1dde1489a98"
],
"NonLaborAssignments": [
{
"Id": "28c56758-dd32-4703-b3ba-78c4af572d04",
"ResourceId": "94932084-cbcd-496a-b5b9-44a522809ad1",
"Quantity": 3.0
},
{
"Id": "28c56758-dd32-4703-b3ba-78c4af572d04",
"ResourceId": "94932084-cbcd-496a-b5b9-44a522809ad1",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "4b34e343-92ce-4771-908e-0d7602d00d71",
"Type": 0,
"ResourceId": "c0a31b8b-aea9-4492-8e7f-dd6dd81823bd",
"Units": 3.0
},
{
"Id": "4b34e343-92ce-4771-908e-0d7602d00d71",
"Type": 0,
"ResourceId": "c0a31b8b-aea9-4492-8e7f-dd6dd81823bd",
"Units": 3.0
}
],
"ParentId": "38b8b90e-f9c7-4352-a780-b1ac32e69cc0",
"WorkTypeParentId": "84766f96-e258-4896-bde1-e11b25547358",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "9f8e3bb3-2315-4b00-a5bb-41a5833b56fd",
"UPN": "c24b9915-de94-4fd9-bc94-e00943727da0",
"PostDate": "2025-11-06T06:48:40.4615764+00:00",
"Comment": "sample string 4",
"CC": [
"b6475b72-a1af-4a0f-b6e1-3a20e15e00bc",
"5573ce0b-9b21-41bf-862f-92d40e18b44c"
],
"Users": [
"482c2399-d20a-4a9b-8387-e0d9fd061851",
"985958c7-0d86-42df-a938-f05df013da59"
]
},
{
"Id": "9f8e3bb3-2315-4b00-a5bb-41a5833b56fd",
"UPN": "c24b9915-de94-4fd9-bc94-e00943727da0",
"PostDate": "2025-11-06T06:48:40.4615764+00:00",
"Comment": "sample string 4",
"CC": [
"b6475b72-a1af-4a0f-b6e1-3a20e15e00bc",
"5573ce0b-9b21-41bf-862f-92d40e18b44c"
],
"Users": [
"482c2399-d20a-4a9b-8387-e0d9fd061851",
"985958c7-0d86-42df-a938-f05df013da59"
]
}
],
"StartDate": "2025-11-06T06:48:40.4615764+00:00",
"DueDate": "2025-11-06T06:48:40.4615764+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"48673b51-deb5-465e-b2e9-e9da610325e2": "0f80c036-d32c-46cc-a75f-6e0b7347e550",
"9d52f20a-61ad-4eca-ac9c-cbcd18fed715": "86ce4255-3e0d-4870-96f3-09a8311978a5"
},
"HasUpdates": true,
"Modified": "2025-11-06T06:48:40.4615764+00:00",
"Editor": "sample string 3",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"CalcFields": {
"sample string 1": {},
"sample string 3": {}
},
"State": 0,
"ApproveRejectBy": "sample string 4",
"ApproveRejectDate": "2025-11-06T06:48:40.4615764+00:00"
},
"LastComment": "2025-11-06T06:48:40.4615764+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "0eeef8f2-09ba-4858-982c-872a39c749cd",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"WorkPlanId": "cadcf1fa-d6c9-4665-82b7-7b747d3b2c00",
"id": "06e332b0-a082-4da8-9ee8-10b4c3e18855",
"ConfigId": "10b02b66-edf2-4254-b1ad-42b94a0424b6"
}