Add 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 user.

application/json

Body Required

  • businessLocationIds array[integer(int64)]

    List of all businessLocationIds to be added.

Responses

  • 200 application/json

    User business location access added successfully.

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

      List of all businessLocationIds to be added.

  • 400

    Bad request. Invalid input parameters.

  • 401

    Authentication failed.

  • 403

    Access Denied.

  • 500

    Internal Server Error.

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