Skip to content

UpdateManagerProfile

UpdateManagerProfile

Description: Updates profile fields of a manager: contact data, language and the personal notifications switch. Permissions and access scopes are not changed by this command; use UpdateManager for them.

The command is available through the manager command API only; there is no REST path for it.

This method is available for:

  • SESSION_ADMIN
  • SESSION_MANAGER
  • SESSION_DEALER

A manager can update his own profile. Updating the profile of another manager requires the right to manage that manager, as in UpdateManager.

Note

Request should include Authorization token

Request Parameters

Only the fields present in the request are changed.

Name Type Required Description
id int Yes Manager id
name string No Name
email string No Email
phone string No Phone
country string No Country
city string No City
address string No Address
position string No Position
messengers string No Messengers
social_networks string No Social networks
language string No Interface language
brand string No Brand. Applied only when the caller is a super admin; ignored otherwise
notifications_enabled int No Personal CRM notifications switch: 1 - receive notifications, 0 - the server creates no CRM notifications for this manager. Accepted only when id is the caller's own id

Notifications switch

notifications_enabled is a personal setting, not a permission. It is 1 for every new and existing manager.

While it is 0, the server does not create CRM notifications for the manager (target = 1, see NotifyRecord): no such record appears in MngGetNotifyList and no notify event is sent for it. This covers client, lead, Cashier and workflow notifications, and CRM notifications created with MngAddNotify. Notifications that were not created while the switch was off do not appear after it is switched on again.

The switch does not affect back office notifications (target = 2: Margin Call and Stop Out for dealers, group changes, feeder messages) and common ones (target = 0): they are always created.

Only the manager himself changes the switch. A request that carries notifications_enabled for another manager is rejected with 403 and none of its fields is applied. UpdateManager and AddManager do not accept the field.

Notifications of trading accounts are not affected.

Request Example

{
  "id": 17,
  "language": "en",
  "notifications_enabled": 0
}

Response Example

{
  "data": "OK"
}

Errors

HTTP code error When
400 INVALID_DATA Validation failed, including notifications_enabled outside 0..1
403 - The caller may not update this manager, or notifications_enabled is sent for another manager
404 MANAGER_NOT_FOUND No manager with this id
500 UPDATE_MANAGER_ERROR Storage error

The current value is returned as notifications_enabled by AuthManager, GetManagers and the manager event.