group.accounts

Group Account Management - Returns a list of all accounts in the Group

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
detailed (accepted)enum (0, 1)0: Not detailed
1: Detailed
detailed_staff (accepted)enum (0, 1)0: Not detailed
1: Detailed

CREATE

ParametersTypeDescription
token (required)Valid token
accounts (required)varcharAccounts
clone_positions (accepted)enum (0,1)Clone position
0: Do not clone positions
1: Clone positions
clone_settings (accepted)enum (0,1)Clone settings
0: Do not clone settings
1: Clone settings
clone_training (accepted)enum (0,1)Clone trainining
0: Do not clone training
1: Clone training

DOCUMENTATION

GET
Group Account Management - Returns a list of all accounts in the Group.
Level 3 is required

--

Example Request:

{
   "method":"GET",
   "module":"group.accounts",
   "request":{
      "detailed":1
   }
}

Example Response:

{
   "status":1,
   "data":[
      {
         "id":"11",
         "name":"Master",
         "domain":"domain",
         "created":"1265595316",
         "language":"en_US",
         "settings":{
            "admin_past_edit":"0",
            "book_days_off":"1",
            "book_days_off_adv":"30",
            "book_days_off_max":"10",
            "confirm_trade_before":"1",
            "confirm_trade_after":"1",
            "sms":"1",
            "email":"1",
            "pm":"1",
            "visible_staff":"1",
            "visible_staff_details":"1",
            "visible_coworkers":"1",
            "trade_shifts":"1",
            "coworkers_contacts":"0",
            "future_avail":"1",
            "weekly_avail":"1",
            "visible_overview":"0",
            "visible_own":"1",
            "timeout":"0",
            "message_wall_on":"1",
            "message_wall_emp":"0",
            "message_wall_comments":"1",
            "message_wall_uploads":"0",
            "on_now":"0",
            "shift_confirm":"1",
            "shift_drop":"0",
            "shift_autoconfirm":"0",
            "timeclock":"1",
            "tc_terminal_lock":"0",
            "tc_round_to":"10",
            "tc_round_to_in":"-1",
            "tc_round_to_out":"-1",
            "tc_clock_in_timeframe":"-1",
            "tc_autoclockout":"0",
            "tc_webcam":"0",
            "tc_empl_import":"1",
            "tc_empl_addtime":"1",
            "24hr":"0",
            "draft":"1",
            "date":"M j, Y",
            "startday":"2",
            "currency":"4",
            "viewadvance":"-1",
            "login_splogo":"1",
            "scosting":"3",
            "start_day":"1",
            "end_day":"7",
            "start_time":"0",
            "end_time":"0",
            "overtime":"40",
            "timezone":"-05:00,1"
         },
         "admin":{
            "id":"556",
            "name":"Marc Smith",
            "email":"[email protected]"
         },
         "staff":[
            {
               "id":"5226",
               "name":"Zidane"
            },
            {
               "id":"22367",
               "name":"Alan Ford"
            }
         ],
         "locations":{
            "0":"None",
            "294":"Budget",
            "318":"Budget Testing",
            "37":"Business Team.",
            "436":"serbia",
            "3":"Support Team"
         },
         "positions":[
            {
               "id":"32408",
               "name":"Admin\/meetings",
               "l_name":null,
               "l_id":null
            }
         ]
      }
   ],
   "token":"xxxxxxx"
}

CREATE
Group Account Management - Creates a list of accounts in the Group.
Level 3 is required

--

Example Request:

{
   "method":"CREATE",
   "module":"group.accounts",
   "request":{
       "accounts":"New child account"
 
   }
}

Example Response:

{
   "status":1,
   "data":[
      {
         "details":{
            "id":"56",
            "settings":{
               "admin_past_edit":"0",
               "book_days_off":"1",
               "book_days_off_adv":"1",
               "book_days_off_max":"11",
               "confirm_trade_before":"1",
               "confirm_trade_after":"1",
               "sms":"1",
               "email":"1",
               "pm":"1",
               "visible_staff":"1",
               "visible_staff_details":"1",
               "visible_coworkers":"1",
               "trade_shifts":"1",
               "coworkers_contacts":"0",
               "future_avail":"1",
               "weekly_avail":"1",
               "visible_overview":"0",
               "visible_own":"1",
               "timeout":"0",
               "message_wall_on":"0",
               "message_wall_emp":"0",
               "message_wall_comments":"1",
               "message_wall_uploads":"1",
               "on_now":"0",
               "shift_confirm":"1",
               "shift_drop":"0",
               "shift_autoconfirm":"0",
               "timeclock":"1",
               "tc_terminal_lock":"1",
               "tc_round_to":"-1",
               "tc_round_to_in":"-1",
               "tc_round_to_out":"-1",
               "tc_clock_in_timeframe":"-1",
               "tc_autoclockout":"0",
               "tc_webcam":"0",
               "tc_empl_import":"0",
               "tc_empl_addtime":"1",
               "24hr":"0",
               "draft":"1",
               "date":"M j, Y",
               "startday":"1",
               "currency":"1",
               "viewadvance":"-1",
               "login_splogo":"1",
               "scosting":"3",
               "start_day":"1",
               "end_day":"7",
               "start_time":"0",
               "end_time":"0",
               "overtime":"40",
               "timezone":"-05:00,1"
            },
            "staff":[
               {
                  "id":"564",
                  "name":"Alan Ford"
               },
               {
                  "id":"5122",
                  "name":"Bob Rock"
               }
            ],
            "locations":[
               {
                  "id":"0",
                  "name":"none"
               },
               {
                  "id":"477",
                  "name":"Test"
               }
            ],
            "positions":[
               {
                  "id":"3213",
                  "name":"Meeting",
                  "l_name":"null",
                  "l_id":"null"
               }
            ]
         }
      }
   ],
   "token":"xxxxxxx"
}