version 8.3.8

Back | 

WsPermission

Returns permissions for a given user

URL Format

/ws/ws_permission/api/{app_token}/mode/json/apiv/5/u/{user_token}

Parameters

Name Req Type Description
app_token string The api token for the given account. You can find the api token when navigating through account->api accounts
apiv integer The api version; only version 5 supported.
user_token string The user token of the user trying to access the account

Request Headers

Name

Possible Responses

  • 641 Permissions found
  • 102 Invalid app token.
  • 659 Invalid Client
  • 1048 Permissions not found
  • 722 Invalid User
  • 100 Invalid user token.

Example Response

{
  "response": {
    "success": {
      "code": 641,
      "message": "Permissions found",
      "details": ""
    },
    "WsPermissionResponse": {
      "User": [
        "Can View Self"
      ],
      "Manager": [
        "Can Save"
      ]
    }
  }
}