Get Many WorkWeeks
Bad Request
Unauthorized
Forbidden
Internal server error
{- "status": "ok",
- "data": [
- {
- "id": "507f1f77bcf86cd799439011",
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "employeeId": "507f1f77bcf86cd799439011",
- "effectiveFrom": "2019-08-24T14:15:22Z",
- "effectiveTo": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "duration": 0,
- "monday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "tuesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "wednesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "thursday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "friday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "saturday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "sunday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}
}
], - "total": 500,
- "count": 50,
- "offset": 50,
- "relations": {
- "office": [
- {
- "id": "string",
- "companyId": "507f1f77bcf86cd799439011",
- "name": "string",
- "phone": "string",
- "email": "string",
- "timezone": "Africa/Abidjan",
- "CFAR": "12345678",
- "SCB": "12345678",
- "SNI": "12345678"
}
], - "employee": [
- {
- "id": "507f1f77bcf86cd799439011",
- "title": "string",
- "active": true,
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "managerEmployeeId": "507f1f77bcf86cd799439011",
- "departmentId": "507f1f77bcf86cd799439011",
- "costCenterId": "507f1f77bcf86cd799439011",
- "effectiveCostCenterId": "507f1f77bcf86cd799439011",
- "employmentId": "507f1f77bcf86cd799439011",
- "employmentTypeId": "507f1f77bcf86cd799439011",
- "employmentCountry": "SE",
- "compensationId": "507f1f77bcf86cd799439011",
- "userId": "507f1f77bcf86cd799439011",
- "userName": "john.doe@example.com",
- "division": "Division 1",
- "organization": "Organization 1",
- "organizationId": "507f1f77bcf86cd799439011",
- "tax": {
- "table": 0,
- "column": 0
}, - "employeeNumber": "string",
- "workEmail": "string",
- "workPhone": "string",
- "workPhoneSanitized": "string",
- "hireDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "hasOccupationalPension": true,
- "privateEmail": "string",
- "firstName": "string",
- "lastName": "string",
- "ssn": "string",
- "ssnCountry": "SE",
- "privatePhone": "string",
- "privatePhoneSanitized": "string",
- "birthDate": "2019-08-24T14:15:22Z",
- "age": 0,
- "avatarUrl": "string",
- "nationality": "string",
- "gender": "string",
- "pronoun": "string",
- "bankAccount": {
- "bank": "string",
- "clearing": "string",
- "number": "string",
- "iban": "string",
- "bic": "string",
- "country": "string"
}, - "homeAddress": {
- "street": "string",
- "postalCode": "string",
- "city": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 123,
- 321
]
}
}, - "custom": {
- "fieldExample": "example value",
- "numberFieldExample": 50,
- "booleanFieldExample": true
}, - "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "offboardDate": "2019-08-24T14:15:22Z"
}
]
}
}Create One WorkWeek
Bad Request
Unauthorized
Forbidden
Internal server error
{- "employeeId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "effectiveFrom": "2019-08-24T14:15:22Z",
- "effectiveTo": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "duration": 0,
- "monday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "tuesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "wednesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "thursday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "friday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "saturday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "sunday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}
}{- "status": "ok",
- "data": {
- "id": "507f1f77bcf86cd799439011",
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "employeeId": "507f1f77bcf86cd799439011",
- "effectiveFrom": "2019-08-24T14:15:22Z",
- "effectiveTo": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "duration": 0,
- "monday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "tuesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "wednesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "thursday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "friday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "saturday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "sunday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}
}
}Get One WorkWeek
Bad Request
Unauthorized
Forbidden
Not Found
Internal server error
{- "status": "ok",
- "data": {
- "id": "507f1f77bcf86cd799439011",
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "employeeId": "507f1f77bcf86cd799439011",
- "effectiveFrom": "2019-08-24T14:15:22Z",
- "effectiveTo": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "duration": 0,
- "monday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "tuesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "wednesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "thursday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "friday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "saturday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "sunday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}
}, - "relations": {
- "office": [
- {
- "id": "string",
- "companyId": "507f1f77bcf86cd799439011",
- "name": "string",
- "phone": "string",
- "email": "string",
- "timezone": "Africa/Abidjan",
- "CFAR": "12345678",
- "SCB": "12345678",
- "SNI": "12345678"
}
], - "employee": [
- {
- "id": "507f1f77bcf86cd799439011",
- "title": "string",
- "active": true,
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "managerEmployeeId": "507f1f77bcf86cd799439011",
- "departmentId": "507f1f77bcf86cd799439011",
- "costCenterId": "507f1f77bcf86cd799439011",
- "effectiveCostCenterId": "507f1f77bcf86cd799439011",
- "employmentId": "507f1f77bcf86cd799439011",
- "employmentTypeId": "507f1f77bcf86cd799439011",
- "employmentCountry": "SE",
- "compensationId": "507f1f77bcf86cd799439011",
- "userId": "507f1f77bcf86cd799439011",
- "userName": "john.doe@example.com",
- "division": "Division 1",
- "organization": "Organization 1",
- "organizationId": "507f1f77bcf86cd799439011",
- "tax": {
- "table": 0,
- "column": 0
}, - "employeeNumber": "string",
- "workEmail": "string",
- "workPhone": "string",
- "workPhoneSanitized": "string",
- "hireDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "hasOccupationalPension": true,
- "privateEmail": "string",
- "firstName": "string",
- "lastName": "string",
- "ssn": "string",
- "ssnCountry": "SE",
- "privatePhone": "string",
- "privatePhoneSanitized": "string",
- "birthDate": "2019-08-24T14:15:22Z",
- "age": 0,
- "avatarUrl": "string",
- "nationality": "string",
- "gender": "string",
- "pronoun": "string",
- "bankAccount": {
- "bank": "string",
- "clearing": "string",
- "number": "string",
- "iban": "string",
- "bic": "string",
- "country": "string"
}, - "homeAddress": {
- "street": "string",
- "postalCode": "string",
- "city": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 123,
- 321
]
}
}, - "custom": {
- "fieldExample": "example value",
- "numberFieldExample": 50,
- "booleanFieldExample": true
}, - "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "offboardDate": "2019-08-24T14:15:22Z"
}
]
}
}Update One WorkWeek
Bad Request
Unauthorized
Forbidden
Not Found
Internal server error
{- "effectiveTo": "2019-08-24T14:15:22Z"
}{- "status": "ok",
- "data": {
- "id": "507f1f77bcf86cd799439011",
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "employeeId": "507f1f77bcf86cd799439011",
- "effectiveFrom": "2019-08-24T14:15:22Z",
- "effectiveTo": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "duration": 0,
- "monday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "tuesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "wednesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "thursday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "friday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "saturday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "sunday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}
}
}Replace One WorkWeek
Bad Request
Unauthorized
Forbidden
Not Found
Internal server error
{- "effectiveTo": "2019-08-24T14:15:22Z"
}{- "status": "ok",
- "data": {
- "id": "507f1f77bcf86cd799439011",
- "companyId": "507f1f77bcf86cd799439011",
- "officeId": "507f1f77bcf86cd799439011",
- "employeeId": "507f1f77bcf86cd799439011",
- "effectiveFrom": "2019-08-24T14:15:22Z",
- "effectiveTo": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "duration": 0,
- "monday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "tuesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "wednesday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "thursday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "friday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "saturday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}, - "sunday": {
- "working": true,
- "duration": 0,
- "shifts": [
- {
- "startHour": 0,
- "startMinute": 0,
- "endHour": 0,
- "endMinute": 0,
- "duration": 0
}
]
}
}
}