Download OpenAPI specification:
Update an existing person partially. V3 uses replace-list semantics for time tracking and employment duration periods instead of the V1 dictionary-based semantics, which lets consumers synchronise their full set of periods in a single call without having to work around unique-start-date or overlap validation.
| employeeNumber required | string |
| id | string Optional person id, i.e. the employee number. |
| titleId | integer <int32> Optional title id. Valid values can be found under the |
| sex | |
| language | integer <int32> Optional user language. Valid values can be found under the |
| residencePermit | string Optional residence permit. |
| ahvNumber | string Optional AHV number (Swiss Social Security Number). Format: 756.XXXX.XXXX.XX, max 16 characters. |
| placeOfBirth | string Optional place of birth, max 50 characters. |
| maritalStatus | string Optional marital status (e.g. ledig, verheiratet, geschieden, verwitwet), max 20 characters. |
| frenchTaxNumber | string Optional French tax identification number, max 25 characters. |
| grossRemunerationChf | number <decimal> Optional gross remuneration in CHF for the certificate year. |
| nationalityId | integer <int32> The nationality. Valid values can be found under the |
object Optional address. | |
object Optional contact information. | |
| remark | string Optional remark. |
| firstName | string Updates the firstname, if set. |
| lastName | string Updates the lastname, if set. |
| dateOfBirth | string <date> Updates the date of birth, if set. Triggers a re-calculation of the entitlements. |
object (PatchPersonEmploymentPayloadV3) Updates employment data, if set. Uses V3 replace-list semantics for time tracking and employment duration periods. | |
object (PatchEmployeeCostsPayload) Updates costs data, if set. | |
object (PatchPresencePayload) Updates presence data, if set. | |
object (PatchPlanningPayload) Updates planning data, if set. | |
object (PatchPermissionsPayload) Updates permissions data, if set. | |
object (PatchLoginPayload) Updates login data, if set. | |
object Updates timelook data, if set. |
{- "id": "string",
- "titleId": 0,
- "sex": 0,
- "language": 0,
- "residencePermit": "string",
- "ahvNumber": "string",
- "placeOfBirth": "string",
- "maritalStatus": "string",
- "frenchTaxNumber": "string",
- "grossRemunerationChf": 0,
- "nationalityId": 0,
- "address": {
- "zip": "string",
- "street": "string",
- "city": "string",
- "countryId": 0
}, - "contact": {
- "phonePrivate": "string",
- "phoneWork": "string",
- "phoneMobile": "string",
- "email": "string",
- "website": "string"
}, - "remark": "string",
- "firstName": "string",
- "lastName": "string",
- "dateOfBirth": "2019-08-24",
- "employment": {
- "salary": {
- "groupId": 0,
- "number": "string",
- "reserve": "string"
}, - "personData": {
- "departmentNumber": 0,
- "isApprentice": true
}, - "timeTracking": [
- {
- "start": "2019-08-24",
- "end": "2019-08-24",
- "workload": 0,
- "defaultTargetTime": 0,
- "hasNoTimeBalance": true,
- "applyWorkload": true
}
], - "employmentDurations": [
- {
- "start": "2019-08-24",
- "end": "2019-08-24"
}
]
}, - "costs": {
- "costCenter": 0,
- "costRate": {
- "costRateGroup": 0,
- "costRate1": 0,
- "costRate2": 0,
- "costRate3": 0
}, - "baseCostCenter": {
- "property1": 0,
- "property2": 0
}
}, - "presence": {
- "weekProgram": {
- "monday": 0,
- "tuesday": 0,
- "wednesday": 0,
- "thursday": 0,
- "friday": 0,
- "saturday": 0,
- "sunday": 0
}, - "groupAssignments": {
- "yearCarryOverGroupId": 0,
- "cutOffGroupId": 0,
- "tenantId": 0,
- "hierarchyId": 0,
- "shiftScheduleId": 0,
- "factoryCalendarId": 0
}, - "gastro": {
- "isActive": true,
- "entitlementGroupId": 0
}, - "info": {
- "qualityGroupId": 0
}, - "entitlementGroups": {
- "property1": "2019-08-24",
- "property2": "2019-08-24"
}
}, - "planning": {
- "details": {
- "toleranceId": 0,
- "timeGenerationMode": 0,
- "autoSignature": true,
- "active": true,
- "functionListType": 0
}, - "groups": {
- "property1": true,
- "property2": true
}
}, - "permissions": {
- "permissionGroupId": 0,
- "presencePermissions": {
- "property1": {
- "groupFrom": 0,
- "groupTo": 0,
- "daysInPast": 0,
- "daysInFuture": 0,
- "mutationGroupId": 0,
- "writeEnabled": true,
- "printEnabled": true,
- "supervisorEnabled": true,
- "humanResourcesEnabled": true,
- "hasAbsenceRequest": true,
- "hasAbsenceMonitoring": true,
- "hasAbsenceClassification": true,
- "activeFrom": "2019-08-24",
- "activeUntil": "2019-08-24"
}, - "property2": {
- "groupFrom": 0,
- "groupTo": 0,
- "daysInPast": 0,
- "daysInFuture": 0,
- "mutationGroupId": 0,
- "writeEnabled": true,
- "printEnabled": true,
- "supervisorEnabled": true,
- "humanResourcesEnabled": true,
- "hasAbsenceRequest": true,
- "hasAbsenceMonitoring": true,
- "hasAbsenceClassification": true,
- "activeFrom": "2019-08-24",
- "activeUntil": "2019-08-24"
}
}, - "planningPermissions": {
- "property1": {
- "groupId": 0,
- "planningEnabled": true,
- "signEnabled": true,
- "from": 0,
- "to": 0
}, - "property2": {
- "groupId": 0,
- "planningEnabled": true,
- "signEnabled": true,
- "from": 0,
- "to": 0
}
}
}, - "login": {
- "identity": {
- "msEntra": {
- "originId": "string",
- "userId": "string"
}, - "activeDirectory": {
- "originId": "string",
- "userId": "string"
}, - "local": {
- "username": "string",
- "password": "string"
}
}, - "mobileApp": {
- "smartphoneEmail": "string",
- "logfileLevel": 0
}, - "communication": {
- "terminalGroup": 0,
- "balanceGroup": 0
}, - "badges": {
- "property1": true,
- "property2": true
}
}, - "timelook": {
- "state": 0,
- "exchangeSynchronization": true,
- "dayPreferences": {
- "forenoon": {
- "start": "string",
- "end": "string"
}, - "afternoon": {
- "start": "string",
- "end": "string"
}
}, - "synchronization": {
- "daysInPast": 0,
- "intervalInMinutes": 0,
- "calendarId": 0,
- "synchronizeOnStartup": true,
- "start": "2019-08-24"
}, - "categories": {
- "absenceColor": "string",
- "functionColor": "string",
- "isNotificationOnAbsenceEnabled": true,
- "isNotificationOnFunctionEnabled": true
}
}
}{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "extensions": {
- "property1": null,
- "property2": null
}, - "property1": null,
- "property2": null
}