Naar hoofdinhoud
users

Update an existing user.

PUT
/user/{userId}
X-API-Keystringheaderverplicht
userIdstringverplicht

The id of the user to perform the action on.

Body

application/json

User object.

activated_atstring

The date and time the account of this user was activated.

activation_codestring

The account activation code of this user, a legacy field that is no longer used.

add_hours_mailinteger

Whether this hiring user is emailed when hours need to be filled in. Returned as 1 (yes) or 0 (no).

addressstring

The street address of this user.

avatar_urlstring

The URL of the avatar of this user; always null in this API because the avatar is not loaded.

banned_atstring

The date and time this user was banned, or null when this user is not banned.

banned_reasonstring

The reason this user was banned.

clock_typestring

The clock style the app uses for this user, either 'tasktype' (per task type), 'ios' or 'android'.

contactpersonstring

The contact person of this hiring user.

created_atstring

The date and time this user was created.

created_ip_addressstring

The IP address this user was created from.

custom_messageinteger

Whether this user receives personal notifications in the app. Returned as 1 (yes) or 0 (no).

custom_message_historystring

The history of the personal messages of this user.

date_of_birthstring

The date of birth of this user.

default_administration_idinteger

The ID of the default administration of this user.

default_client_idinteger

The ID of the default client (klant) of this user.

default_extrawork_idinteger

The ID of the default extra work operation of this user.

default_operation_category_idinteger

The ID of the default operation category of this user.

default_operation_idinteger

The ID of the default operation (werkzaamheid) of this user.

default_order_idinteger

The ID of the default order (project) of this user.

default_task_type_slugstring

The slug of the default task type of this user.

default_travel_timeinteger

The default travel time of this user in minutes.

default_user_group_idinteger

The ID of the default user group of this user.

default_vehicle2_idinteger

The ID of the default second vehicle (vehicle2) of this user.

default_vehicle3_idinteger

The ID of the default third vehicle (vehicle3) of this user.

default_vehicle_idinteger

The ID of the default vehicle of this user.

deleted_atstring

The date and time this user was deleted, or null when this user is not deleted.

deleted_byinteger

The ID of the backend user who deleted this user.

descriptionstring

The internal note about this user.

Whether photos taken in the app are kept out of the gallery of the device of this user. Returned as 1 (yes) or 0 (no).

emailstring

The email address of this user.

employee_numberstring

The employee number of this user.

extra_dataobject

The custom field values of this user, keyed by custom field code.

first_namestring

The first name of this user.

groupsobject[]

The user groups this user belongs to.

house_numberstring

The house number of this user.

idintegerverplicht

The ID of this user (medewerker).

initialsstring

The initials of this user.

is_guestinteger

Whether this user is a guest account. Returned as 1 (yes) or 0 (no).

is_mail_blockedinteger

Whether email to this user is blocked, a legacy flag that is no longer read. Returned as 1 (yes) or 0 (no).

is_support_activeinteger

Whether support access to the account of this user is enabled. Returned as 1 (yes) or 0 (no).

keep_screen_activeinteger

Whether the app keeps the screen active for this user. Returned as 1 (yes) or 0 (no).

language_preferencestring

The app language of this user, either 'nl', 'en', 'de', 'fr', 'fy', 'sv', 'ro', 'pl', 'uk' or 'bg'.

last_ip_addressstring

The IP address this user last signed in from.

last_namestring

The last name of this user.

last_seenstring

The date and time this user was last active.

location_administrationinteger

Whether the location of this user is recorded for the administration. Returned as 1 (yes) or 0 (no).

location_automaticinteger

Whether the app records the location of this user automatically. Returned as 1 (yes) or 0 (no).

location_coordinatesstring

The last known location coordinates of this user, as reported by the app.

location_lastseenstring

The date and time the location of this user was last reported.

location_whoiswhereinteger

Whether the location of this user is shared in "Who is where". Returned as 1 (yes) or 0 (no).

mailsobject

The custom email templates of this hiring user, keyed by 'new_account', 'new_tasks_available' or 'add_hours'.

new_tasks_mailinteger

Whether this hiring user is emailed when new work is available. Returned as 1 (yes) or 0 (no).

note_entriesobject[]

The notes about this user.

notesstring

The legacy notes of this user, replaced by note_entries.

notification_frequencystring

The notification frequency of this user.

open_pdf_externalinteger

Whether the app opens PDF files in an external viewer for this user. Returned as 1 (yes) or 0 (no).

open_url_externalinteger

Whether the app opens URLs in an external browser for this user. Returned as 1 (yes) or 0 (no).

phonestring

The phone number of this user.

postal_codestring

The postal code of this user.

primary_group_idinteger

The ID of the primary user group of this user.

push_tokenstring

The push notification token of the mobile app of this user.

residencestring

The city of residence of this user.

settings_locationinteger

Whether location is enabled in the app settings of this user. Returned as 1 (yes) or 0 (no).

settings_notificationinteger

Whether this user receives push notifications in the app. Returned as 1 (yes) or 0 (no).

social_security_numberstring

The social security number (BSN) of this user; this is sensitive personal data and is returned unmasked.

sort_orderinteger

The sort order of this user.

superadmin_descriptionstring

The note about this user that only super admins can see.

supplier_idinteger

The ID of the supplier whose purchase invoices are matched against the tasks of this hiring user.

task_colorstring

The default color of the tasks of this user.

task_newtaskinteger

Whether this user can create new tasks in the app. Returned as 1 (yes) or 0 (no).

task_showclientsinteger

Whether clients (klanten) are shown to this user in the app. Returned as 1 (yes) or 0 (no).

task_showoperationsinteger

Whether operations (werkzaamheden) are shown to this user in the app. Returned as 1 (yes) or 0 (no).

task_workedhoursinteger

Whether worked hours are enabled for this user in the app. Returned as 1 (yes) or 0 (no).

tasktypes_blockedany[]

The task types that are blocked for this user in the app.

times_enable_minimal_pause_minutesinteger

Whether this user must declare at least the break minutes of the contract. Returned as 1 (yes) or 0 (no).

times_enable_minimal_work_hoursinteger

Whether this user must declare at least the work hours of the contract. Returned as 1 (yes) or 0 (no).

times_minimal_pause_minutesstring

The minimum number of break minutes, as a numeric string, this user must declare when the contract minimum is not used.

times_minimal_work_hoursstring

The minimum number of hours, as a numeric string, this user must declare when the contract minimum is not used.

two_factor_confirmed_atstring

The date and time two-factor authentication was confirmed for this user, or null when it is not enabled.

typestring

The account type of this user, either 'regular' (app user), 'for_hire' (hiring), 'no_app' (non app user) or 'free'.

updated_atstring

The date and time this user was last updated.

usernamestring

The username of this user, which defaults to the email address.

versionstring

A counter, as a numeric string, that increases every time this user is saved so the app can detect changes; it restarts at 1 after 1000.

Antwoord

application/json

Successful operation.

dataobject

The result message and the result data.

statusstring

The result status, success.