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": "47bc0c5f-4ae7-4b10-88f3-c27b9fa5226c",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-10T14:41:54.6593494+00:00",
"End": "2026-10-10T14:41:54.6593494+00:00",
"Rate": 6.0,
"RateTableId": "19677d84-6836-4860-bc93-97a7ee89cb01",
"Resources": [
{
"ResourceId": "83f9cace-cf7c-4d6a-b1c7-8c29c42e9a98",
"Units": 2.0
},
{
"ResourceId": "83f9cace-cf7c-4d6a-b1c7-8c29c42e9a98",
"Units": 2.0
}
]
},
{
"TaskId": "47bc0c5f-4ae7-4b10-88f3-c27b9fa5226c",
"Duration": 2.0,
"Effort": 3.0,
"Start": "2026-10-10T14:41:54.6593494+00:00",
"End": "2026-10-10T14:41:54.6593494+00:00",
"Rate": 6.0,
"RateTableId": "19677d84-6836-4860-bc93-97a7ee89cb01",
"Resources": [
{
"ResourceId": "83f9cace-cf7c-4d6a-b1c7-8c29c42e9a98",
"Units": 2.0
},
{
"ResourceId": "83f9cace-cf7c-4d6a-b1c7-8c29c42e9a98",
"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": "15cc94c7-efe5-4483-a5e6-931eff69b1a2",
"Cost": 2.0,
"Revenue": 3.0
},
{
"TaskId": "15cc94c7-efe5-4483-a5e6-931eff69b1a2",
"Cost": 2.0,
"Revenue": 3.0
}
]