Path parameters
-
The unique identifier for the business location.
-
The unique identifier for the user.
Body Required
-
The staff username. Only used for POS staff.
Maximum length is
128
. -
The 4-digit pin code for the user.
Maximum length is
4
. -
The first name of the user.
Maximum length is
128
. -
The last name of the user.
Maximum length is
128
. -
Indicates if the user is active.
-
Indicates if the user is visible.
-
group integer(int64)
The unique identifier for the user group.
Default value is
-1
. -
User report permissions.
-
List of roles assigned to the user. Normally, these are the default POS user roles. See Get All POS User Permissions for a list of roles.
PUT /staff/v1/businessLocations/{businessLocationId}/userTypes/POS/{staffId}
curl \
-X PUT https://api.trial.lsk.lightspeed.app/staff/v1/businessLocations/{businessLocationId}/userTypes/POS/{staffId} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username":"John Doe","pinCode":"1234","firstName":"John","lastName":"Doe","active":true,"visible":true,"group":-1,"reportAccess":"string","roles":["string"]}'
Request examples
{
"username": "John Doe",
"pinCode": "1234",
"firstName": "John",
"lastName": "Doe",
"active": true,
"visible": true,
"group": -1,
"reportAccess": "string",
"roles": [
"string"
]
}
Response examples (201)
{
"staffId": 1234,
"username": "John Doe",
"userTypes": [
"POS"
],
"firstName": "John",
"lastName": "Doe",
"email": "hello@example.com",
"active": true,
"createdOn": "2024-05-04T09:42:00+00:00",
"modifiedOn": "2024-05-04T09:42:00+00:00",
"businessId": 12345,
"businessLocationId": 1234567890,
"groups": [
{
"id": 1234,
"name": "Bar Staff"
}
],
"reportAccess": [
"STAFF_REPORT_OWN_ACCESS"
],
"roles": [
{
"id": 1234,
"name": "ROLE_CAN_LOGIN"
}
]
}