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": "d8291669-7b33-469d-a5d6-46cfb4dc8187",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-17T21:38:53.0650128+00:00",
"End": "2026-10-17T21:38:53.0650128+00:00",
"Rate": 6.0,
"RateTableId": "634cc038-2d86-4be1-b6c8-fa6b85928af5",
"Resources": [
{
"ResourceId": "b58c73e7-fdc0-489e-a6a4-8d391ae4385b",
"Units": 2.0
},
{
"ResourceId": "b58c73e7-fdc0-489e-a6a4-8d391ae4385b",
"Units": 2.0
}
]
},
{
"TaskId": "d8291669-7b33-469d-a5d6-46cfb4dc8187",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-17T21:38:53.0650128+00:00",
"End": "2026-10-17T21:38:53.0650128+00:00",
"Rate": 6.0,
"RateTableId": "634cc038-2d86-4be1-b6c8-fa6b85928af5",
"Resources": [
{
"ResourceId": "b58c73e7-fdc0-489e-a6a4-8d391ae4385b",
"Units": 2.0
},
{
"ResourceId": "b58c73e7-fdc0-489e-a6a4-8d391ae4385b",
"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": "3ceb7ac9-787e-4fa0-b993-732ada27f61d",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "3ceb7ac9-787e-4fa0-b993-732ada27f61d",
"Cost": 2.0,
"Revenue": 3.0
}
]