Skip to content

Instantly share code, notes, and snippets.

@okmit
Last active November 24, 2019 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okmit/2f573903a23821f5677e90410d2bc2f5 to your computer and use it in GitHub Desktop.
Save okmit/2f573903a23821f5677e90410d2bc2f5 to your computer and use it in GitHub Desktop.

HR Permissions

  • URL

    /v1/hr/settings/permissions

  • Method:

    GET

  • Success Response:

    • Code: 200 OK
      Content: {"data":[
      {"id":1,"name":"Read All Employees","resource_name":"employee","permit":"read_all","position":1},
      {"id":3,"name":"Manage All Employees","resource_name":"employee","permit":"manage_all","position":20},
      {"id":2,"name":"Manage Employees","resource_name":"employee","permit":"manage","position":10}]}
  • Error Response:

  • Sample Call:

  • Notes:

HR Positions

  • URL

    /v1/hr/settings/positions

  • Method:

    GET

  • Success Response:

    • Code: 200 OK
      Content: {"data":[
      {"id":3,"name":"Worker","slug":"worker"},
      {"id":1,"name":"Hr Manager","slug":"hr_manager"}]}
  • Error Response:

  • Sample Call:

  • Notes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment