Start a conversation

User

1) user/change-language

Method - POST

Field Type Available values Note
authId
integer
   
language
String
  Two-letter code language


2) user/check-auth

Method - GET

Request parameters

Field Type Available values Note
login
String
   
type
String
"member" For the "onlineoffice" gateway, this field is not required. It will  be automatically  filled with the value of "member"
password
String
   


3) user/create

Method - POST

Fields description

Field Mandatory Note
login
yes  
type
yes Optional for onlineoffice gateway
password
no If the field is not transmitted, or transmitted with empty, the password is automatically generated and returned in the response.
    Password generation rules are determined by settings (see setting)
sponsorId
yes Sponsor ID (ID in the Account table)
confirmationUrl
no The URL of the page, that will be inserted into the email sent to the user to confirm registration.
    This line should contain a placeholder {{code}}
    URL example: https://mydomain.com/register-confirmation?code={code}}
      If this parameter is missing in the request, then the registration is considered confirmed and the letter is not sent to the user.
profile
yes  


4) user/delete

Method to delete user.


    URL - https://.../main-app/user/delete

Request body

{                  

  "authId"  :  40,                

  "withAccount"  :  1  

}

  • authId - record ID in the auth table. You can find it from the request user/check-auth: payload → auth → id
  • withAccount - Also delete user account


5) user/exists

Method - GET

Field Type Available values Note
login
String
   
type
String
"member" For the "onlineoffice" gateway, this field is not required. It will automatically be filled with the value of "member"


6) user/get

URL - https://.../main-app/user/get

Field Type Valid values Note
id
Integer
   


7)user/mail-confirm

E-mail confirmation

  • by user ("correct"). You have to pass the code specified in the letter.
  • by admin (forced). You have to specify the flag "force confirm" and email address. Also in this case, the check for overdue confirmation message is not performed.

Method - POST

Request body for "correct" confirmation

{

"code"  :  "ce67814b8c7b"

}

Request body for forced confirmation 

{

"force"  :  1,

"email"  :  "j.smift2h@endrix.org"

}

8)user/profile-update

This method is listed through a queue.

Only those fields, that transmitted in the request, are updated.

Method - POST

Fields description

Field Mandatory Note
authId
yes User ID (table auth). You can get this ID from the structure returned by the request user/check-auth (auth → id)
profile
yes  


Profile
  The entire list of profile fields, including custom fields, can be obtained by the profile-field/get-list request.

  Phone number format: user/create # phone

Loading avatar
In order to upload an avatar, you need to transfer the following profile structure.

{
  "data": base64 encoded string,
  "baseName": string,
  "extension": "png" or "jpeg" or "jpg" or "gif"
  }

Getting an avatar in any method that returns a client profile. For example, the user/exists method.


9) user/remove-avatar

This method removes the record from the user profile, the record from the file_storage table, and the file itself, if it exists.

Method - DELETE

URL - https://.../online-office/user/remove-avatar

Request parameters

Field Type Mandatory field Note
id
Integer
Yes User ID in the table kernel_user


10) user/search

User search method

    The input is a string by which a complete match with the id is sought, or a partial or complete match with the email or full name of the user.

Method - POST

Parameter Type Mandatory
    field
Default value Note
searchText string yes    
accountId int no    
treeId int no  0 Tree ID being searched


11) user/set-password

Method - POST

Request parameters

Field Type Mandatory
    field
Note
id
Integer
Yes ID from DTO auth. This model can be obtained from the response to the user / check-auth request.
    This field is required if the userId parameter is not passed.
userId
Integer
Yes This field is required if the id parameter is not passed.
type
Integer
Yes This field is required if the id parameter is not passed.
newPassword
String
Yes
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Daria Tsirelnikova

  2. Posted
  3. Updated

Comments