CompanyUsers

Updates existing CompanyUsers, including submitted Address and UserEmployment child objects (to be modified, not added or removed). Additionally you may optionally submit a list of UserEmployment.EmploymentBalanceConfiguration objects, which will then replace all existing records of that type. Provide null values (not empty lists) to leave child objects unmodified. Note also that the convenience fields UserLanguageId and UserIdentityNumber, which really belong to the User object in the hiarchy, may be updated this way. Finally, notice that users with the Employee role can only update their own CompanyUser object, and NOT the attached UserEmployment objects.

put/api/companyusers/batch

Request body

Idinteger
UserIdinteger
CompanyIdinteger
RoleIdinteger
IsActiveboolean
FirstNamestring
MiddleNamestring
LastNamestring
BankRegNostring
BankAccountNostring
BicSwiftNostring
IbanNostring
AddressIdinteger
IsPaymentApproverboolean
Initialsstring
TelMobilestring
TelFixedstring
CompanyEmailstring
PersonalEmailstring
Createdstring date-time
DeactivationDatestring date-time nullable
PreferredCurrencyIdinteger nullable
AutoDetermineBankAccountboolean
MunicipalityIdinteger nullable
Updatedstring date-time
TinNrstring
TinNrUnknownboolean
ExpenseIdstring uuid nullable
IsActiveInExpenseboolean
CreatedByinteger nullable
UpdatedByinteger nullable
RecycleBinstring
FullNamestring
UserLanguageIdinteger
UserIdentityNumberstring
UserDateOfBirthstring date-time nullable
UserIsFemaleboolean nullable
HasDummyIdentityNumberboolean
IsTemporaryNorwegianIdentityNumberboolean

Response

OK

Errorsobject
HasErrorsboolean

Changes