Update a job opening
curl --request PATCH \
--url https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Store Manager - San Francisco",
"location": "In-office 3 days per week in San Francisco, CA",
"pay": "$18 per hour or $80,000 - $100,000 per year",
"hours": "Full-time, 40 hours per week",
"status": "live",
"link_access": {
"restricted": false
},
"owner_emails": [
"[email protected]"
],
"job_type": {
"job_description": "<job_description>",
"ai_interviewer_guidance": "Be friendly and professional",
"resume_collection_type": "before_interview",
"should_force_fullscreen": true,
"should_record_video": true
}
}
'import requests
url = "https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}"
payload = {
"name": "Store Manager - San Francisco",
"location": "In-office 3 days per week in San Francisco, CA",
"pay": "$18 per hour or $80,000 - $100,000 per year",
"hours": "Full-time, 40 hours per week",
"status": "live",
"link_access": { "restricted": False },
"owner_emails": ["[email protected]"],
"job_type": {
"job_description": "<job_description>",
"ai_interviewer_guidance": "Be friendly and professional",
"resume_collection_type": "before_interview",
"should_force_fullscreen": True,
"should_record_video": True
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Store Manager - San Francisco',
location: 'In-office 3 days per week in San Francisco, CA',
pay: '$18 per hour or $80,000 - $100,000 per year',
hours: 'Full-time, 40 hours per week',
status: 'live',
link_access: {restricted: false},
owner_emails: ['[email protected]'],
job_type: {
job_description: '<job_description>',
ai_interviewer_guidance: 'Be friendly and professional',
resume_collection_type: 'before_interview',
should_force_fullscreen: true,
should_record_video: true
}
})
};
fetch('https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Store Manager - San Francisco',
'location' => 'In-office 3 days per week in San Francisco, CA',
'pay' => '$18 per hour or $80,000 - $100,000 per year',
'hours' => 'Full-time, 40 hours per week',
'status' => 'live',
'link_access' => [
'restricted' => false
],
'owner_emails' => [
'[email protected]'
],
'job_type' => [
'job_description' => '<job_description>',
'ai_interviewer_guidance' => 'Be friendly and professional',
'resume_collection_type' => 'before_interview',
'should_force_fullscreen' => true,
'should_record_video' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}"
payload := strings.NewReader("{\n \"name\": \"Store Manager - San Francisco\",\n \"location\": \"In-office 3 days per week in San Francisco, CA\",\n \"pay\": \"$18 per hour or $80,000 - $100,000 per year\",\n \"hours\": \"Full-time, 40 hours per week\",\n \"status\": \"live\",\n \"link_access\": {\n \"restricted\": false\n },\n \"owner_emails\": [\n \"[email protected]\"\n ],\n \"job_type\": {\n \"job_description\": \"<job_description>\",\n \"ai_interviewer_guidance\": \"Be friendly and professional\",\n \"resume_collection_type\": \"before_interview\",\n \"should_force_fullscreen\": true,\n \"should_record_video\": true\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Store Manager - San Francisco\",\n \"location\": \"In-office 3 days per week in San Francisco, CA\",\n \"pay\": \"$18 per hour or $80,000 - $100,000 per year\",\n \"hours\": \"Full-time, 40 hours per week\",\n \"status\": \"live\",\n \"link_access\": {\n \"restricted\": false\n },\n \"owner_emails\": [\n \"[email protected]\"\n ],\n \"job_type\": {\n \"job_description\": \"<job_description>\",\n \"ai_interviewer_guidance\": \"Be friendly and professional\",\n \"resume_collection_type\": \"before_interview\",\n \"should_force_fullscreen\": true,\n \"should_record_video\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Store Manager - San Francisco\",\n \"location\": \"In-office 3 days per week in San Francisco, CA\",\n \"pay\": \"$18 per hour or $80,000 - $100,000 per year\",\n \"hours\": \"Full-time, 40 hours per week\",\n \"status\": \"live\",\n \"link_access\": {\n \"restricted\": false\n },\n \"owner_emails\": [\n \"[email protected]\"\n ],\n \"job_type\": {\n \"job_description\": \"<job_description>\",\n \"ai_interviewer_guidance\": \"Be friendly and professional\",\n \"resume_collection_type\": \"before_interview\",\n \"should_force_fullscreen\": true,\n \"should_record_video\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"job_opening": {
"id": "<string>",
"name": "<string>",
"interview_link": "<string>",
"link_access": {
"restricted": true
},
"location": {
"description": "<string>"
},
"pay": {
"description": "<string>"
},
"hours": {
"description": "<string>"
},
"questions": [
"<string>"
],
"owner_emails": [
"[email protected]"
],
"job_type": {
"id": "<string>",
"name": "<string>",
"job_description": "<string>",
"ai_interviewer_guidance": "<string>",
"qualifications": [
"<string>"
],
"should_force_fullscreen": true,
"should_record_video": true
}
}
}
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Hiring
Update Job Opening
Updates an existing job opening and its associated job type
PATCH
/
job-openings
/
{JOB_OPENING_ID}
Update a job opening
curl --request PATCH \
--url https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Store Manager - San Francisco",
"location": "In-office 3 days per week in San Francisco, CA",
"pay": "$18 per hour or $80,000 - $100,000 per year",
"hours": "Full-time, 40 hours per week",
"status": "live",
"link_access": {
"restricted": false
},
"owner_emails": [
"[email protected]"
],
"job_type": {
"job_description": "<job_description>",
"ai_interviewer_guidance": "Be friendly and professional",
"resume_collection_type": "before_interview",
"should_force_fullscreen": true,
"should_record_video": true
}
}
'import requests
url = "https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}"
payload = {
"name": "Store Manager - San Francisco",
"location": "In-office 3 days per week in San Francisco, CA",
"pay": "$18 per hour or $80,000 - $100,000 per year",
"hours": "Full-time, 40 hours per week",
"status": "live",
"link_access": { "restricted": False },
"owner_emails": ["[email protected]"],
"job_type": {
"job_description": "<job_description>",
"ai_interviewer_guidance": "Be friendly and professional",
"resume_collection_type": "before_interview",
"should_force_fullscreen": True,
"should_record_video": True
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Store Manager - San Francisco',
location: 'In-office 3 days per week in San Francisco, CA',
pay: '$18 per hour or $80,000 - $100,000 per year',
hours: 'Full-time, 40 hours per week',
status: 'live',
link_access: {restricted: false},
owner_emails: ['[email protected]'],
job_type: {
job_description: '<job_description>',
ai_interviewer_guidance: 'Be friendly and professional',
resume_collection_type: 'before_interview',
should_force_fullscreen: true,
should_record_video: true
}
})
};
fetch('https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Store Manager - San Francisco',
'location' => 'In-office 3 days per week in San Francisco, CA',
'pay' => '$18 per hour or $80,000 - $100,000 per year',
'hours' => 'Full-time, 40 hours per week',
'status' => 'live',
'link_access' => [
'restricted' => false
],
'owner_emails' => [
'[email protected]'
],
'job_type' => [
'job_description' => '<job_description>',
'ai_interviewer_guidance' => 'Be friendly and professional',
'resume_collection_type' => 'before_interview',
'should_force_fullscreen' => true,
'should_record_video' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}"
payload := strings.NewReader("{\n \"name\": \"Store Manager - San Francisco\",\n \"location\": \"In-office 3 days per week in San Francisco, CA\",\n \"pay\": \"$18 per hour or $80,000 - $100,000 per year\",\n \"hours\": \"Full-time, 40 hours per week\",\n \"status\": \"live\",\n \"link_access\": {\n \"restricted\": false\n },\n \"owner_emails\": [\n \"[email protected]\"\n ],\n \"job_type\": {\n \"job_description\": \"<job_description>\",\n \"ai_interviewer_guidance\": \"Be friendly and professional\",\n \"resume_collection_type\": \"before_interview\",\n \"should_force_fullscreen\": true,\n \"should_record_video\": true\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Store Manager - San Francisco\",\n \"location\": \"In-office 3 days per week in San Francisco, CA\",\n \"pay\": \"$18 per hour or $80,000 - $100,000 per year\",\n \"hours\": \"Full-time, 40 hours per week\",\n \"status\": \"live\",\n \"link_access\": {\n \"restricted\": false\n },\n \"owner_emails\": [\n \"[email protected]\"\n ],\n \"job_type\": {\n \"job_description\": \"<job_description>\",\n \"ai_interviewer_guidance\": \"Be friendly and professional\",\n \"resume_collection_type\": \"before_interview\",\n \"should_force_fullscreen\": true,\n \"should_record_video\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpharun.com/api/v1/job-openings/{JOB_OPENING_ID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Store Manager - San Francisco\",\n \"location\": \"In-office 3 days per week in San Francisco, CA\",\n \"pay\": \"$18 per hour or $80,000 - $100,000 per year\",\n \"hours\": \"Full-time, 40 hours per week\",\n \"status\": \"live\",\n \"link_access\": {\n \"restricted\": false\n },\n \"owner_emails\": [\n \"[email protected]\"\n ],\n \"job_type\": {\n \"job_description\": \"<job_description>\",\n \"ai_interviewer_guidance\": \"Be friendly and professional\",\n \"resume_collection_type\": \"before_interview\",\n \"should_force_fullscreen\": true,\n \"should_record_video\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"job_opening": {
"id": "<string>",
"name": "<string>",
"interview_link": "<string>",
"link_access": {
"restricted": true
},
"location": {
"description": "<string>"
},
"pay": {
"description": "<string>"
},
"hours": {
"description": "<string>"
},
"questions": [
"<string>"
],
"owner_emails": [
"[email protected]"
],
"job_type": {
"id": "<string>",
"name": "<string>",
"job_description": "<string>",
"ai_interviewer_guidance": "<string>",
"qualifications": [
"<string>"
],
"should_force_fullscreen": true,
"should_record_video": true
}
}
}
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the job opening to update
Body
application/json
Name of the job opening
Required string length:
3 - 150Location of the job
Maximum string length:
200Pay information
Maximum string length:
200Working hours information
Maximum string length:
200Status of the job opening
Available options:
live, paused Show child attributes
Show child attributes
Show child attributes
Show child attributes
Array of email addresses for job opening owners
Response
Job opening updated successfully
Show child attributes
Show child attributes
⌘I