Assign a vacancy
This endpoint allows assigning a previously published vacancy to an employee.
POST /api/v1/businesses/{business}/vacancies/{vacancy}/acceptor/{employee}
The data that needs to be included in the request are as follows:
-
business: identifier configured in Orquest for the business.
-
vacancy: identifier indicated in the vacancy record.
-
employee: identifier of the employee to whom the vacancy is to be assigned.
Considerations
If the request data is correct, the employee’s name will be added in the Accepted by column under Scheduling > Vacant offers.
If the vacancy has already been assigned, the request will return a 400 - Bad request
error indicating Vacancy already assigned.
If the vacancy has expired, the request will return a 400 - Bad request
error indicating Vacancy expired.
If the vacancy identifier does not exist, the request will return a 404 - Not found
error indicating Vacancy not found.