Roles
Create a Role.
Method | Type | Description |
---|---|---|
name | String | Name of the role. |
priority | Int | Priority of the role. |
store | String | Store id. |
privileges | String | List of privileges for this role. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "yeni",
"priority": 4,
"store": "{store-id}",
"privileges": [
"BO_TAX",
"BO_STORE_SETTINGS",
"DASH_FEEDBACK",
"DASH_TOP_FIVE_RETURNING_CUSTOMERS"
]
}' \
"https://api.lingaros.com/v1/lingapos/role" \
You can reach role privilege from;
curl -X GET \
-H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/getRoleGroup"
Read all roles by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/roles
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/roles"
Read all active roles by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeUserRoles
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeUserRoles"
Read a role by ID.
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/role/{role-id}"
Update a role.
Method | Type | Description |
---|---|---|
name | String | Name of the role. |
priority | Int | Priority of the role. |
store | String | Store id. |
privileges | String | List of privileges for this role. |
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "yeni",
"priority": 4,
"store": "{store-id}",
"privileges": [
"BO_TAX",
"BO_STORE_SETTINGS",
"DASH_FEEDBACK",
"DASH_TOP_FIVE_RETURNING_CUSTOMERS"
]
}' \
"https://api.lingaros.com/v1/lingapos/role/{role-id}" \
Delete(Inactive) a role.
URL:https://api.lingaros.com/v1/lingapos/role/{role-id}/inactivate
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
"https://api.lingaros.com/v1/lingapos/role/{role-id}/inactivate" \