Area
Endpoints
Create new area
| /companies/{companycode}/establishments/{establishmentcode}/areas | 
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 | 
| Body | body | 
Get entity list
| /companies/{companycode}/establishments/{establishmentcode}/areas | 
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 | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < Area > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/establishments/{establishmentcode}/areas/import | 
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 | 
| Body | body | 
Get one area
| /companies/{companycode}/establishments/{establishmentcode}/areas/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Area code to retrieve | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Delete area
| /companies/{companycode}/establishments/{establishmentcode}/areas/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Area public uuid code to delete | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Data structure
Area
Area data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | Area code | string | 10 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| establishmentCode | Current establishment code | string | 2 characters max | 
| improvementFields | ImprovementFieldDTO list | ||
| label | Area label | string | 50 characters max | 
| publicUuid | Area public uuid | string | |
| validityEndDate | datetime | YYYY-MM-DDTHH:MM:SSZ | 
ImprovementFieldDTO
| Name | Value | Business Rules | 
|---|---|---|
| code | string | 10 characters max | 
| label | string | 50 characters max | 
| usedInWorkshop | boolean | |
| validityBeginAt | datetime | YYYY-MM-DDTHH:MM:SSZ | 
| validityEndAt | datetime | YYYY-MM-DDTHH:MM:SSZ | 
ImportAreaList
| Name | Value | 
|---|---|
| callback | string | 
| data | Area list |