IntroductionBefore you beginTerminologyGetting started
Authorization
Accounts
Entities
IntroductionEntity definitionsRetrieve an entityClientsEngagementsEmployeesCreate an employeeEdit an employeeDelete an employee
User accounts
GroupsFilesFoldersTemplatesEmail templatesAppsErrors

Employees

SmartVault's API allows the creation of employees as entities for an account as well as the ability to update its group membership at any time and its deletion.







Create an employee

There are some limitations for entity creation based on the user permissions:

Only admin level users can create employee entities.

Create an employee
PUT/nodes/entity/SmartVault.Accounting.Firm/{account_id}/SmartVault.Accounting.FirmToEmployee


Parameters


account_idstringThe account's alphanumerical identification.

You can find more info on how to retrieve the account's id here.


Body parameters


Even though some parameters are optional, make sure you use the ones you really want before submitting the request, as you won't be able to edit anything of the employee, excepting the membership type, after its been created.

Show Required fields


Show Optional fields



Example of a request body for adding a new employee.

Show body request


For more information on how to assign a new employee of "assigned" type to a client, check here.


Response


Will return the newly added employee object.

Show success object


You can get an error when trying to add a new employee if you are already at max number of employees for the account.

Show error object









Edit an employee

You can only edit an employee's membership type once it has been created.

Update an employee
POST/nodes/entity/SmartVault.Accounting.Firm/{account_id}/SmartVault.Accounting.FirmToEmployee/{employee_id}


Parameters


account_idstringThe account's alphanumerical identification.
employee_idstringThe employee's alphanumerical identification.


Body parameters


Show Body parameters



Example of a request body for updating the membership type an employee:

Show body request




Response


Will return the newly added employee object.

Show success object









Delete an employee

Deletes the entity on the specified path based on the account ID and the employee to delete ID.

You cannot remove yourself from a vault.

Delete an employee
DELETE/nodes/entity/SmartVault.Accounting.Firm/{account_id}/SmartVault.Accounting.FirmToEmployee/{employee_id}


Parameters


account_idstringThe account's alphanumerical identification.
employee_idstringThe employee's alphanumerical identification.


Request


curl --include \
--request DELETE \
--header "Content-Type: application/json" \
--header "Authorization: Basic dGVzdHVzZXJAc21hcnR2YXVsdC5jb206UTB4Sk1EQUFBQUFBQUFBQlVZRE9MOE82N3oyQjdvVmJLcytWMngybmZHTXgzR2FzY2pNUEp4Y0dGeHZPeWc9PQ==" \
'https://rest.smartvault.com/nodes/entity/path'

Response


Returns a default success object if the deletion goes well.

Show success object


Returns an error object if the path to the employee doesn't exist.

Show error object