Day template
Endpoints
Create new day template
| /companies/{companycode}/establishments/{establishmentcode}/day-templates | 
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}/day-templates | 
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 | < DayTemplate > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/establishments/{establishmentcode}/day-templates/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 | 2 characters max | 
Get one day template
| /companies/{companycode}/establishments/{establishmentcode}/day-templates/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity 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 day template
| /companies/{companycode}/establishments/{establishmentcode}/day-templates/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity 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
DayTemplate
Day template data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | Day template code | string | 10 characters max | 
| color | Color | string | 7 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| establishmentCode | Current establishment code | string | 2 characters max | 
| label | Day template label | string | 50 characters max | 
| periods | Periods | TeamPeriod list | |
| publicUuid | DayTemplate public uuid | string | |
| style | Style | string | Within (MAINTENANCE=Maintenance, HOLIDAY=Holiday, NOT_WORKED=Not worked) | 
| validityEndDate | Validity end date | datetime | AAAA-MM-JJTHH:MM:SSZ | 
TeamPeriod
| Name | Value | Business Rules | 
|---|---|---|
| beginHour | HH:MM | |
| endHour | HH:MM | |
| productionDay | string | IN(CURRENT,PREVIOUS,NEXT) | 
| teamCode | string | 15 characters max | 
| workedPeriod | boolean | 
LocalTime
| Name | Value | 
|---|---|
| hour | integer | 
| minute | integer | 
| nano | integer | 
| second | integer | 
ImportDayTemplateList
| Name | Value | 
|---|---|
| callback | string | 
| data | DayTemplate list |