Api doc


SDK's


Api Modules

admin.group_perms

Retrives business details



Supported Methods:

GET
Params
  • token (Required): valid token
  • user: integer


UPDATE
Params
  • token (Required): valid token
  • group_perms (Required): varchar


Documentation

GET
Retrieves an employees group perms.
If you specify id, retrieve selected employees perms.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "user": accepted //User id (integer)
  2. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"admin.group_perms",
  3. "method":"GET",
  4. "request":{
  5. "user":"15553"
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "user":"15553",
  5. "read":"1",
  6. "write":"1",
  7. "can_add_account":"1",
  8. "can_access_account":"1",
  9. "updated":"2012-06-02 11:46:44",
  10. "id":"15553",
  11. "name":"John Smith"
  12. },
  13. "token":"xxxxxxx"
  14. }

---

UPDATE
Updates an employees group perms.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "group_perms": required //Set of data (varchar)
  2. /* perm[0]: user id (integer)
  3.   * perm[1]: Can add accounts (integer/boolean)
  4.   * 0(false): Can not add accounts
  5.   * 1(true) : Can add accounts
  6.   * perm[2]: Can write (integer/boolean)
  7.   * 0(false): Can not write
  8.   * 1(true) : Can write
  9.   * perm[3]: Can read (integer/boolean)
  10.   * 0(false): Can not read
  11.   * 1(true) : Can read
  12.   * perm[4]: Can access all accounts (integer/boolean)
  13.   * 0(false): Can not access all accounts
  14.   * 1(true) : Can access all accounts */
  15. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"admin.group_perms",
  3. "method":"GET",
  4. "request":{
  5. "group_perms":"15553,0,0,0,0,5112,0,0,0,0"
  6. //In this example we updated two employees perms
  7. }
  8. }

Example Response:

  1. {
  2. "status":1,
  3. "data":true,
  4. "token":"xxxxxxx"
  5. }

GET STARTED NOW

Free Trial. No Credit Card Required.

close
(e.g.+14158675309 or +1415-8675-309)

By clicking "Create my ShiftPlanning Account" you agree to the Terms of Service and Privacy Policy.

Have a promotional code?Click Here


LIVE CHAT DEMO REQUEST!

Please provide information below.

close
INSTANT DEMOSCHEDULED DEMO
Connect with a ShiftPlanning Team Member for a live demo right now!
 

RESELLER REQUEST!

Please provide information below.

close