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
CostRevenueRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Tasks | Collection of CostRevenueTask |
None. |
Request Formats
application/json, text/json
Sample:
{
"Tasks": [
{
"TaskId": "7c61830e-6930-4ff8-85fe-8206f8836136",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-07T01:03:05.5490882+00:00",
"End": "2026-05-07T01:03:05.5490882+00:00",
"Rate": 6.0,
"RateTableId": "6893a49d-064d-4b73-9110-d875ee24ad0f",
"Resources": [
{
"ResourceId": "ba048146-930e-47ce-ab27-654bda3682e0",
"Units": 2.0
},
{
"ResourceId": "ba048146-930e-47ce-ab27-654bda3682e0",
"Units": 2.0
}
]
},
{
"TaskId": "7c61830e-6930-4ff8-85fe-8206f8836136",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-05-07T01:03:05.5490882+00:00",
"End": "2026-05-07T01:03:05.5490882+00:00",
"Rate": 6.0,
"RateTableId": "6893a49d-064d-4b73-9110-d875ee24ad0f",
"Resources": [
{
"ResourceId": "ba048146-930e-47ce-ab27-654bda3682e0",
"Units": 2.0
},
{
"ResourceId": "ba048146-930e-47ce-ab27-654bda3682e0",
"Units": 2.0
}
]
}
]
}
Response Information
Resource Description
Collection of CostRevenueResult| Name | 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": "a9bdee9d-dae8-438a-b4a4-1539d22c5928",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "a9bdee9d-dae8-438a-b4a4-1539d22c5928",
"Cost": 2.0,
"Revenue": 3.0
}
]