POST api/workplan/{Id}/revenue
Calculate tasks cost and revenue (External Use)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
Required |
Body Parameters
CostRevenueRequestName | Description | Type | Additional information |
---|---|---|---|
Tasks | Collection of CostRevenueTask |
None. |
Request Formats
application/json, text/json
Sample:
{ "Tasks": [ { "TaskId": "e2960b9f-ddb3-4702-947d-c2bcdff58b40", "Duration": 2.0, "Effort": 3.0, "Start": "2025-05-23T22:09:16.0377001+00:00", "End": "2025-05-23T22:09:16.0377001+00:00", "Resources": [ { "ResourceId": "e7439a41-ce26-4fa3-a32f-7fbf34037e07", "Units": 2.0 }, { "ResourceId": "e7439a41-ce26-4fa3-a32f-7fbf34037e07", "Units": 2.0 } ] }, { "TaskId": "e2960b9f-ddb3-4702-947d-c2bcdff58b40", "Duration": 2.0, "Effort": 3.0, "Start": "2025-05-23T22:09:16.0377001+00:00", "End": "2025-05-23T22:09:16.0377001+00:00", "Resources": [ { "ResourceId": "e7439a41-ce26-4fa3-a32f-7fbf34037e07", "Units": 2.0 }, { "ResourceId": "e7439a41-ce26-4fa3-a32f-7fbf34037e07", "Units": 2.0 } ] } ] }
Response Information
Resource Description
Collection of CostRevenueResultName | Description | Type | Additional information |
---|---|---|---|
TaskId | globally unique identifier |
None. |
|
Cost | decimal number |
None. |
|
Revenue | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TaskId": "1afaaf62-3649-4d0f-8f88-311262955091", "Cost": 2.0, "Revenue": 3.0 }, { "TaskId": "1afaaf62-3649-4d0f-8f88-311262955091", "Cost": 2.0, "Revenue": 3.0 } ]