cURL
curl -X PATCH "https://api.alex.com/v2/jobs/8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"status": "inactive"
}'import requests
url = "https://api.alex.com/v2/jobs/{id}"
payload = { "status": "inactive" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'inactive'})
};
fetch('https://api.alex.com/v2/jobs/{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.alex.com/v2/jobs/{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([
'status' => 'inactive'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.alex.com/v2/jobs/{id}"
payload := strings.NewReader("{\n \"status\": \"inactive\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.alex.com/v2/jobs/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"inactive\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/jobs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"inactive\"\n}"
response = http.request(request)
puts response.read_body{
"object": "job",
"id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"name": "Senior Backend Engineer",
"candidate_facing_name": "Senior Backend Engineer",
"description": "We are hiring a senior backend engineer to build distributed systems...",
"external_id": "REQ-12345",
"status": "inactive",
"workflow_id": "wf_6c2e8a1f4b9d",
"language": null,
"application_url": "https://meet.alex.com/apply/8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"rounds": [
{
"object": "round",
"id": "r1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
"number": 1,
"type": "alex_interview",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"medium": "video",
"template_id": "clx8f2k1p0000abcd1234efgh",
"assessment_guide_id": null,
"recruiter_user_ids": [],
"recruiter_source": null,
"guide_status": "ready",
"updated_at": "2026-11-30T14:05:12.000Z"
},
{
"object": "round",
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"medium": "video",
"template_id": null,
"assessment_guide_id": null,
"recruiter_user_ids": [
"u7f3a9c1-2b4d-4e6f-8a0c-1e3b5d7f9a2c"
],
"recruiter_source": "explicit",
"guide_status": null,
"updated_at": "2026-11-30T14:05:12.000Z"
}
],
"custom_fields": {
"department": "Engineering"
},
"generation_status": "complete",
"failure_reason": null,
"updated_at": "2026-11-30T14:05:12.000Z"
}Jobs
Update a job
Activates or deactivates a job, as the dashboard does. Emits job.updated.
PATCH
/
jobs
/
{id}
cURL
curl -X PATCH "https://api.alex.com/v2/jobs/8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"status": "inactive"
}'import requests
url = "https://api.alex.com/v2/jobs/{id}"
payload = { "status": "inactive" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'inactive'})
};
fetch('https://api.alex.com/v2/jobs/{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.alex.com/v2/jobs/{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([
'status' => 'inactive'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.alex.com/v2/jobs/{id}"
payload := strings.NewReader("{\n \"status\": \"inactive\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.alex.com/v2/jobs/{id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"inactive\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/jobs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"inactive\"\n}"
response = http.request(request)
puts response.read_body{
"object": "job",
"id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"name": "Senior Backend Engineer",
"candidate_facing_name": "Senior Backend Engineer",
"description": "We are hiring a senior backend engineer to build distributed systems...",
"external_id": "REQ-12345",
"status": "inactive",
"workflow_id": "wf_6c2e8a1f4b9d",
"language": null,
"application_url": "https://meet.alex.com/apply/8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"rounds": [
{
"object": "round",
"id": "r1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b",
"number": 1,
"type": "alex_interview",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"medium": "video",
"template_id": "clx8f2k1p0000abcd1234efgh",
"assessment_guide_id": null,
"recruiter_user_ids": [],
"recruiter_source": null,
"guide_status": "ready",
"updated_at": "2026-11-30T14:05:12.000Z"
},
{
"object": "round",
"id": "r2b3c4d5-e6f7-4081-9b0c-1d2e3f4a5b6c",
"number": 2,
"type": "human_interview",
"job_id": "8b1f0c52-3e4a-4d8e-9a77-2f6c1d0b9e31",
"medium": "video",
"template_id": null,
"assessment_guide_id": null,
"recruiter_user_ids": [
"u7f3a9c1-2b4d-4e6f-8a0c-1e3b5d7f9a2c"
],
"recruiter_source": "explicit",
"guide_status": null,
"updated_at": "2026-11-30T14:05:12.000Z"
}
],
"custom_fields": {
"department": "Engineering"
},
"generation_status": "complete",
"failure_reason": null,
"updated_at": "2026-11-30T14:05:12.000Z"
}Authorizations
apiKeyAuthbearerAuth
Headers
A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.
Required string length:
1 - 255Body
application/json
Response
The updated job.