Skip to main content

Roles

Create a Role.

URL:https://api.lingaros.com/v1/lingapos/role

MethodTypeDescription
nameStringName of the role.
priorityIntPriority of the role.
storeStringStore id.
privilegesStringList 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;

URL:https://api.lingaros.com/v1/lingapos/getRoleGroup

 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.

URL:https://api.lingaros.com/v1/lingapos/role/{role-id}

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/role/{role-id}"

Update a role.

URL:https://api.lingaros.com/v1/lingapos/role/{role-id}

MethodTypeDescription
nameStringName of the role.
priorityIntPriority of the role.
storeStringStore id.
privilegesStringList 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" \