Add Staff business location access

POST /staff/v1/business/{businessId}/assignStaff/{staffId}

Path parameters

  • businessId integer(int64) Required

    The unique identifier for the business.

  • staffId integer(int64) Required

    The unique identifier for the employee.

application/json

Body Required

  • businessLocationIds array[integer(int64)]

    List of all businessLocationIds contained within the business.

Responses

  • 200 application/json

    Staff business location access added successfully

    Hide response attribute Show response attribute object
    • businessLocationIds array[integer(int64)]

      List of all businessLocationIds contained within the business.

  • Bad request. Invalid input parameters.

  • Authentication failed.

  • Access Denied.

  • Internal Server Error.

POST /staff/v1/business/{businessId}/assignStaff/{staffId}
curl \
 -X POST https://api.trial.lsk.lightspeed.app/staff/v1/business/{businessId}/assignStaff/{staffId} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"businessLocationIds":[123456789,987654321]}'
Request examples
{
  "businessLocationIds": [
    123456789,
    987654321
  ]
}
Response examples (200)
{
  "businessLocationIds": [
    123456789,
    987654321
  ]
}