Patch job description
curl --request PATCH \
--url https://api.gospott.com/job-descriptions/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"content": "<p>We are looking for a senior software engineer...</p>",
"externalJobTitle": "Senior Software Engineer",
"requirements": "<string>",
"description": "<string>",
"compensation": "<string>"
}
'import requests
url = "https://api.gospott.com/job-descriptions/{id}"
payload = {
"content": "<p>We are looking for a senior software engineer...</p>",
"externalJobTitle": "Senior Software Engineer",
"requirements": "<string>",
"description": "<string>",
"compensation": "<string>"
}
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({
content: '<p>We are looking for a senior software engineer...</p>',
externalJobTitle: 'Senior Software Engineer',
requirements: '<string>',
description: '<string>',
compensation: '<string>'
})
};
fetch('https://api.gospott.com/job-descriptions/{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.gospott.com/job-descriptions/{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([
'content' => '<p>We are looking for a senior software engineer...</p>',
'externalJobTitle' => 'Senior Software Engineer',
'requirements' => '<string>',
'description' => '<string>',
'compensation' => '<string>'
]),
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.gospott.com/job-descriptions/{id}"
payload := strings.NewReader("{\n \"content\": \"<p>We are looking for a senior software engineer...</p>\",\n \"externalJobTitle\": \"Senior Software Engineer\",\n \"requirements\": \"<string>\",\n \"description\": \"<string>\",\n \"compensation\": \"<string>\"\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.gospott.com/job-descriptions/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<p>We are looking for a senior software engineer...</p>\",\n \"externalJobTitle\": \"Senior Software Engineer\",\n \"requirements\": \"<string>\",\n \"description\": \"<string>\",\n \"compensation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gospott.com/job-descriptions/{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 \"content\": \"<p>We are looking for a senior software engineer...</p>\",\n \"externalJobTitle\": \"Senior Software Engineer\",\n \"requirements\": \"<string>\",\n \"description\": \"<string>\",\n \"compensation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 500,
"category": "INTERNAL_ERROR",
"message": "Internal server error",
"requestId": "<string>"
}Job Descriptions
Patch job description
Partially update a single job description. Any subset of the external job title, content, blocks and language may be provided; omitted fields are left unchanged. Content is only accepted for FREEFORM job descriptions and blocks only for STRUCTURED ones. Changing the language fails if another job description already exists for that job and language.
PATCH
/
job-descriptions
/
{id}
Patch job description
curl --request PATCH \
--url https://api.gospott.com/job-descriptions/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"content": "<p>We are looking for a senior software engineer...</p>",
"externalJobTitle": "Senior Software Engineer",
"requirements": "<string>",
"description": "<string>",
"compensation": "<string>"
}
'import requests
url = "https://api.gospott.com/job-descriptions/{id}"
payload = {
"content": "<p>We are looking for a senior software engineer...</p>",
"externalJobTitle": "Senior Software Engineer",
"requirements": "<string>",
"description": "<string>",
"compensation": "<string>"
}
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({
content: '<p>We are looking for a senior software engineer...</p>',
externalJobTitle: 'Senior Software Engineer',
requirements: '<string>',
description: '<string>',
compensation: '<string>'
})
};
fetch('https://api.gospott.com/job-descriptions/{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.gospott.com/job-descriptions/{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([
'content' => '<p>We are looking for a senior software engineer...</p>',
'externalJobTitle' => 'Senior Software Engineer',
'requirements' => '<string>',
'description' => '<string>',
'compensation' => '<string>'
]),
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.gospott.com/job-descriptions/{id}"
payload := strings.NewReader("{\n \"content\": \"<p>We are looking for a senior software engineer...</p>\",\n \"externalJobTitle\": \"Senior Software Engineer\",\n \"requirements\": \"<string>\",\n \"description\": \"<string>\",\n \"compensation\": \"<string>\"\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.gospott.com/job-descriptions/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<p>We are looking for a senior software engineer...</p>\",\n \"externalJobTitle\": \"Senior Software Engineer\",\n \"requirements\": \"<string>\",\n \"description\": \"<string>\",\n \"compensation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gospott.com/job-descriptions/{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 \"content\": \"<p>We are looking for a senior software engineer...</p>\",\n \"externalJobTitle\": \"Senior Software Engineer\",\n \"requirements\": \"<string>\",\n \"description\": \"<string>\",\n \"compensation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>",
"category": "MALFORMED_REQUEST"
}{
"status": 500,
"category": "INTERNAL_ERROR",
"message": "Internal server error",
"requestId": "<string>"
}Authorizations
Body
application/json
Response
Job description updated successfully
Was this page helpful?