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

Responses

  • 200 application/json

    User business location access added successfully.

    Hide response attribute Show response attribute object
  • 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
  ]
}