curl --request DELETE \
--url https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}/interviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "abc123"
}
'{
"success": true
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Hiring
Remove Candidate from Job Opening
Removes a candidate from a job opening by deleting all of their interviews in it, whatever their status.
The candidate can be identified by contact_id, email, phone_number, or custom_field. At least one of these identifiers must be provided. If several are provided, the first present in that order is used: contact_id, then email, then phone_number, then custom_field.
Use custom_field to identify the interviews by a custom field value:
- With
resource_typeinterview, every interview in the job opening whose field matches the value is deleted. - With
resource_typecontact, every interview in the job opening of each contact whose field matches the value is deleted.
DELETE
/
job-openings
/
{JOB_OPENING_ID}
/
interviews
curl --request DELETE \
--url https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}/interviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "abc123"
}
'{
"success": true
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Authorizations
Body
application/json
Payload for deleting a candidate's interviews from a job opening. At least one identifier must be provided. Contact identifiers take precedence over custom_field.