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": "1a6a9b0f-2a76-4c96-83fb-b22b2303cfad",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-03T15:41:38.7437719+00:00",
"End": "2026-07-03T15:41:38.7437719+00:00",
"Rate": 6.0,
"RateTableId": "718d77d7-1d21-4155-bb72-4fa51bc3c6e1",
"Resources": [
{
"ResourceId": "c778539e-063a-40a8-ab04-c31b2f7eeb01",
"Units": 2.0
},
{
"ResourceId": "c778539e-063a-40a8-ab04-c31b2f7eeb01",
"Units": 2.0
}
]
},
{
"TaskId": "1a6a9b0f-2a76-4c96-83fb-b22b2303cfad",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-07-03T15:41:38.7437719+00:00",
"End": "2026-07-03T15:41:38.7437719+00:00",
"Rate": 6.0,
"RateTableId": "718d77d7-1d21-4155-bb72-4fa51bc3c6e1",
"Resources": [
{
"ResourceId": "c778539e-063a-40a8-ab04-c31b2f7eeb01",
"Units": 2.0
},
{
"ResourceId": "c778539e-063a-40a8-ab04-c31b2f7eeb01",
"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": "3a052a29-97d3-4890-8ab2-9f5b21aada8e",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "3a052a29-97d3-4890-8ab2-9f5b21aada8e",
"Cost": 2.0,
"Revenue": 3.0
}
]