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": "d2343ae7-d1da-4d48-8695-714d74a2a652",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-26T14:26:54.1800442+00:00",
"End": "2026-04-26T14:26:54.1800442+00:00",
"Rate": 6.0,
"RateTableId": "1e0f6dcf-5458-4f36-b43e-e52ba99fd442",
"Resources": [
{
"ResourceId": "bbe0d2b3-f57d-4943-9ca9-3237061f8122",
"Units": 2.0
},
{
"ResourceId": "bbe0d2b3-f57d-4943-9ca9-3237061f8122",
"Units": 2.0
}
]
},
{
"TaskId": "d2343ae7-d1da-4d48-8695-714d74a2a652",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-04-26T14:26:54.1800442+00:00",
"End": "2026-04-26T14:26:54.1800442+00:00",
"Rate": 6.0,
"RateTableId": "1e0f6dcf-5458-4f36-b43e-e52ba99fd442",
"Resources": [
{
"ResourceId": "bbe0d2b3-f57d-4943-9ca9-3237061f8122",
"Units": 2.0
},
{
"ResourceId": "bbe0d2b3-f57d-4943-9ca9-3237061f8122",
"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": "7a46a981-6eb7-42c7-a153-7f50754e6ac0",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "7a46a981-6eb7-42c7-a153-7f50754e6ac0",
"Cost": 2.0,
"Revenue": 3.0
}
]