diff --git a/components/examples/budget.json b/components/examples/budget.json index f1fb341..7ba04cf 100644 --- a/components/examples/budget.json +++ b/components/examples/budget.json @@ -8,6 +8,7 @@ "id": 3, "name": "Morpheus" }, + "forecastType": null, "enabled": true, "refScope": "tenant", "refType": "Account", diff --git a/components/examples/budgetCreateSuccess.json b/components/examples/budgetCreateSuccess.json index 2921d40..ec739f4 100644 --- a/components/examples/budgetCreateSuccess.json +++ b/components/examples/budgetCreateSuccess.json @@ -8,6 +8,7 @@ "id": 3, "name": "Morpheus" }, + "forecastType": null, "enabled": true, "refScope": "tenant", "refType": "Account", diff --git a/components/examples/budgets.json b/components/examples/budgets.json index 728fadf..179eb83 100644 --- a/components/examples/budgets.json +++ b/components/examples/budgets.json @@ -8,6 +8,7 @@ "id": 3, "name": "Morpheus" }, + "forecastType": null, "enabled": true, "refScope": "tenant", "refType": "Account", @@ -58,6 +59,7 @@ "id": 3, "name": "Morpheus" }, + "forecastType": null, "enabled": true, "refScope": "user", "refType": "User", diff --git a/components/schemas/budget.yaml b/components/schemas/budget.yaml index 09fa799..ff93bdd 100644 --- a/components/schemas/budget.yaml +++ b/components/schemas/budget.yaml @@ -16,6 +16,16 @@ properties: format: int64 name: type: string + forecastType: + type: object + description: Forecast Model type + nullable: true + properties: + id: + type: integer + format: int64 + name: + type: string enabled: type: boolean refScope: diff --git a/paths/api@budgets.yaml b/paths/api@budgets.yaml index 243cd52..ae88bdc 100644 --- a/paths/api@budgets.yaml +++ b/paths/api@budgets.yaml @@ -119,6 +119,17 @@ post: enabled: type: boolean default: true + forecastType: + type: object + description: Forecast Model + nullable: true + required: + - id + properties: + id: + type: integer + format: int64 + description: The ID of the Forecast Model type. See GET /api/options/forecastTypes responses: '200': description: Successful Request diff --git a/paths/api@budgets@id.yaml b/paths/api@budgets@id.yaml index ccde6eb..0f4f351 100644 --- a/paths/api@budgets@id.yaml +++ b/paths/api@budgets@id.yaml @@ -114,6 +114,17 @@ put: enabled: type: boolean default: true + forecastType: + type: object + description: Forecast Model + nullable: true + required: + - id + properties: + id: + type: integer + format: int64 + description: The ID of the Forecast Model type. See GET /api/options/forecastTypes responses: '200': description: Successful Request