Update user access to accounts
This API updates the list of accounts that a PILOT user has access to.
Method
GET
Request address
To execute the request, use the following URL: https://<server_address>/backend/api.php?
Request parameters
• cmd=update_user_accounts_map — command for updating user access to accounts
• accounts — list of account IDs the user should have access to. If there are several accounts, separate them with commas
• user_id — ID of the user whose access is being updated
Request example
https://<server_address>/backend/api.php?cmd=update_user_accounts_map&accounts=1087&user_id=535
|
If you need to specify several accounts:
https://<server_address>/backend/api.php?cmd=update_user_accounts_map&accounts=1087,1131&user_id=535
|
Response
{
"code": 0,
"msg": "Success"
}
|
The API response returns:
• code — command execution result code. The value 0 means successful execution
• msg — text message with the command execution result