Data Access Forecast version
Endpoints
Get list of forecast versions
| /forecast/companies/{companycode}/establishments/{establishmentcode}/data-access/forecast-versions | 
Parameters
| Type | Name | Description | Schema | Business rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
| Query | planCode | Plan code | string | 10 characters max | 
| Query | horizonCode | Horizon code | string | 10 characters max | 
| Query | states | Version states | list of string | within (ARC, PRG, PPB, PUB, CAN) : ARC = Archived | 
| Query | onlyLastVersion | True if only last published version by plan | boolean | |
| Query | onlyForDashboard | True if only versions to use in dashboard | boolean | |
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < ForecastVersion > array | 
| 400 | Functionnal error | No Content | 
| 403 | Not allowed without Data Access offer | No Content | 
| 500 | Internal server error | No Content | 
Data structure
ForecastVersion
Forecast version data structure for Get.
| Name | Description | Value | Business rules | 
|---|---|---|---|
| companyCode | Current company code | string | 2 characters max | 
| establishmentCode | Current establishment code | string | 2 characters max | 
| planCode | Plan code | string | 10 characters max | 
| horizonCode | Horizon code | string | 10 characters max | 
| versionCode | Version code | string | 10 characters max | 
| versionLabel | Version label | string | 30 characters max | 
| startDate | Start date | datetime (ISO-8601) | |
| endDate | End date | datetime (ISO-8601) | |
| state | Version state | string | within (ARC, PRG, PPB, PUB, CAN) : ARC = Archived | 
| publicationDate | Publication date | datetime (ISO-8601) |