This is the same as editing the Account Settings in the dashboard. If using a Session Key or API Key for a Sub-Account it will edit that account instead.
http://xxx.xxx.xxx.xxx/[API KEY]/accounts/[GROUP KEY]/edit?data={}
Form data can be passed in a POST, instead of GET, as a JSON string under the "data" parameter. The complete Account Settings for the data parameter is provided to you when you login.
A Sub-Account is an account that has limited privileges to the Administrator's Monitors, Videos, Events, and Logs.
http://xxx.xxx.xxx.xxx/admin/[API KEY]/accounts/[GROUP KEY]/register?data={}
{
"data": {
"mail": "[SUB-ACCOUNT LOGIN ADDRESS]",
"pass": "[SUB-ACCOUNT PASSWORD]",
"password_again": "[SUB-ACCOUNT PASSWORD]"
}
}
With this call you can modify permissions for the specified Sub-Account.
http://xxx.xxx.xxx.xxx/admin/[API KEY]/accounts/[GROUP KEY]/edit?uid=[USER ID]&mail=[LOGIN ADDRESS]&data={}
The contents of details
can vary based on version used.
{
"uid": "[SUB-ACCOUNT USER ID]",
"mail": "[SUB-ACCOUNT LOGIN ADDRESS]",
"data": {
"details": {
"sub": "1",
"allmonitors": "1"
}
}
}
With this call you can remove a Sub-Account and their associated API Keys.
http://xxx.xxx.xxx.xxx/admin/[API KEY]/accounts/[GROUP KEY]/delete?uid=[USER ID]&mail=[LOGIN ADDRESS]
{
"uid": "[SUB-ACCOUNT USER ID]",
"mail": "[SUB-ACCOUNT LOGIN ADDRESS]"
}