Target
Endpoints
Create new target
| /companies/{companycode}/targets | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Import entity list
| /companies/{companycode}/targets/import | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Data structure
Target
Target data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | Target code | string | 10 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| duration | Target duration : DAY, WEEK, MONTH or YEAR | string | (DAY, WEEK, MONTH, YEAR) | 
| label | Target label | string | 50 characters max | 
| quantityRef | Target relative quantityRef | double | |
| targets | Target list (scopes and values) | Target list | |
| type | Target type : MO, MOD, MOI, MOG or TRS | string | (MO, MOD, MOI, MOG, TRS) | 
| unit | Target unit | string | 5 characters max | 
| validityEndDate | Target validity end date | datetime | YYYY-MM-DDTHH:MM:SSZ | 
ImportTargetList
| Name | Value | 
|---|---|
| callback | string | 
| data | Target list |