Openapi
Update employment fields such as job title, department, manager, and status.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
employeeId*stringuuidorganizationId*stringuuidThe fields to change.
application/jsoncompanyName?|length <= 200departmentTeamId?|nullendDate?firstName?string1 <= length <= 120jobTitle?|length <= 160kind?string"employee""employee""contractor""intern"kvk?|length <= 32lastName?|length <= 120reportsToEmployeeId?|uuidshowBirthday?booleanshowWorkAnniversary?booleanstartDate?status?string"onboarding""active""offboarding""ended"timezone?|length <= 64vatId?|length <= 32workEmail?||archived?booleanReturns the updated employee.
application/jsonaccountDisabled*booleanarchivedAt*string|nullavatarUrl*string|nullcompanyName*string|nullcreatedAt*stringdepartmentTeamId*|nulldepartmentTeamName*string|nulldisplayName*stringendDate*firstName*stringhasAppAccess*booleanid*stringuuidjobTitle*string|nullkind*employeeKindSchema"employee""contractor""intern"kvk*string|nulllastName*string|nullmanager*|nullorganizationId*stringuuidreportsToEmployeeId*|uuidscheduleCycleAnchor*showBirthday*booleanshowWorkAnniversary*booleanstartDate*status*employeeStatusSchema"onboarding""active""offboarding""ended"timezone*string|nullupdatedAt*stringuserId*|uuidvatId*string|nullworkEmail*string|nullcurl -X PATCH 'https://app.localhost/api/v1/organizations/123/employees/123e4567-e89b-12d3-a456-426614174000' \ -H 'Content-Type: application/json' \ -d '{}'{ "accountDisabled": true, "archivedAt": "string", "avatarUrl": "string", "companyName": "string", "createdAt": "string", "departmentTeamId": "88604e30-77f8-4dc2-b2ec-3fc0d75dffe6", "departmentTeamName": "string", "displayName": "string", "endDate": {}, "firstName": "string", "hasAppAccess": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "jobTitle": "string", "kind": "employee", "kvk": "string", "lastName": "string", "manager": { "avatarUrl": "string", "displayName": "string", "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "jobTitle": "string", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b" }, "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "reportsToEmployeeId": "fce5b852-e2b1-4acc-9be0-b8f61c6cc246", "scheduleCycleAnchor": {}, "showBirthday": true, "showWorkAnniversary": true, "startDate": {}, "status": "onboarding", "timezone": "string", "updatedAt": "string", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "vatId": "string", "workEmail": "string"}