Budgets
Update milestone revenue recognition configs for a budget
Changed onput/1.0/budgets/{budgetId}/milestone-revenue-recognition-configs
Request
- Base URLhttps://api.rocketlane.com/api
- AuthAPI key in header api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
budgetIdinteger required
Example:101
Unique identifier of the budget
Query parameters
includeFieldsstring[]
This query parameter allows you to specify which fields should be returned in the response body by selecting from the drop down. To get the relevant fields, use comma separated values. If the field is left blank, the default properties are returned.
includeAllFieldsboolean
Example:true
This query parameter allows you to specify if all the fields should be returned in the response body. If the field is left blank, the default properties are returned.
Request body
Example request
{
"milestoneRevenueRecognitionConfigs": [
{
"sourceType": "TASK",
"sourceId": 1001,
"recognisedRevenue": 1000,
"recognisedPercentage": 10
}
]
}Response
The requested action was successfully executed.
Example response
{
"budgetId": 101,
"projectId": 42,
"projectName": "Acme Implementation",
"budgetName": "FY 2024 Services",
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"status": {
"value": 2,
"label": "In progress"
},
"currency": "USD",
"revenueRecognitionType": "TRACKED_HOURS_BY_PERIOD_HOURS",
"customRevenueRecognitionConfigId": 101,
"budgetHours": 1.65,
"timeAndMaterialContract": {
"rateCard": {
"rateCardId": 21,
"rateCardName": "US Project rate"
}
},
"subscriptionContract": {
"subscriptionFrequency": "MONTHLY",
"subscriptionStartDate": "2023-03-28",
"periodMinutes": 60,
"periodBudget": 10000,
"noOfPeriods": 10
},
"budgetFinancialsMetrics": {
"actualRevenue": 10000,
"estimatedRevenue": 200000,
"actualRevenueInAccountCurrency": 10000,
"estimatedRevenueInAccountCurrency": 200000,
"actualTimeCost": 200,
"estimatedTimeCost": 200,
"actualTimeCostInAccountCurrency": 200,
"estimatedTimeCostInAccountCurrency": 200,
"actualExpenseCost": 200,
"estimatedExpenseCost": 200,
"actualExpenseCostInAccountCurrency": 200,
"estimatedExpenseCostInAccountCurrency": 200,
"actualCost": 200,
"estimatedCost": 200,
"actualCostInAccountCurrency": 200,
"estimatedCostInAccountCurrency": 200,
"trackedMinutes": 200,
"remainingMinutes": 200,
"allocatedMinutes": 200,
"billableAllocatedMinutes": 200,
"nonBillableAllocatedMinutes": 200,
"billableTrackedMinutes": 200,
"nonBillableTrackedMinutes": 200,
"actualProfit": 200,
"estimatedProfit": 200,
"actualProfitInAccountCurrency": 200,
"estimatedProfitInAccountCurrency": 200,
"actualProfitMargin": 200,
"estimatedProfitMargin": 200,
"actualProfitMarginInAccountCurrency": 200,
"estimatedProfitMarginInAccountCurrency": 200,
"percentageBudgetedHoursConsumed": 200,
"percentageBudgetConsumed": 200,
"estimateAtCompletion": 200,
"estimationToCompletionInHours": 200
},
"manualRevenueRecognitionConfigs": [
{
"manualRevenueRecognitionConfigId": 1001,
"recognitionDate": "2026-04-01",
"recognisedRevenue": 1000,
"recognisedPercentage": 10
}
],
"milestoneRevenueRecognitionConfigs": [
{
"milestoneRevenueRecognitionConfigId": 1001,
"sourceType": "TASK",
"sourceId": 2001,
"recognisedRevenue": 1000,
"recognisedPercentage": 10
}
],
"createdAt": 1681319726000,
"updatedAt": 1681319726000,
"createdBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"updatedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"fields": [
{
"fieldId": 201,
"fieldLabel": "MRR",
"fieldValueLabel": "1000"
}
]
}Changes
- info
endpoint added
- info