curl --request POST \
--url https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"knowledge_base_id": "44444444-4444-4444-8444-444444444444",
"interview_ids": [
"de300000-0000-4000-8001-000000000007"
]
}
'import requests
url = "https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews"
payload = {
"knowledge_base_id": "44444444-4444-4444-8444-444444444444",
"interview_ids": ["de300000-0000-4000-8001-000000000007"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
knowledge_base_id: '44444444-4444-4444-8444-444444444444',
interview_ids: ['de300000-0000-4000-8001-000000000007']
})
};
fetch('https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews', 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://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'knowledge_base_id' => '44444444-4444-4444-8444-444444444444',
'interview_ids' => [
'de300000-0000-4000-8001-000000000007'
]
]),
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://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews"
payload := strings.NewReader("{\n \"knowledge_base_id\": \"44444444-4444-4444-8444-444444444444\",\n \"interview_ids\": [\n \"de300000-0000-4000-8001-000000000007\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"knowledge_base_id\": \"44444444-4444-4444-8444-444444444444\",\n \"interview_ids\": [\n \"de300000-0000-4000-8001-000000000007\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"knowledge_base_id\": \"44444444-4444-4444-8444-444444444444\",\n \"interview_ids\": [\n \"de300000-0000-4000-8001-000000000007\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"knowledge_base_id": "<string>",
"limit_to_interviews": true,
"interview_ids": [
"<string>"
]
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Change which interviews can use a document
Replaces the interview limit of an existing knowledge base document: a list of interviews, an empty list for none, or null for every interview on the knowledge base. Takes effect for the next live session and the next generation; the document is not processed again and costs no credits.
curl --request POST \
--url https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"knowledge_base_id": "44444444-4444-4444-8444-444444444444",
"interview_ids": [
"de300000-0000-4000-8001-000000000007"
]
}
'import requests
url = "https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews"
payload = {
"knowledge_base_id": "44444444-4444-4444-8444-444444444444",
"interview_ids": ["de300000-0000-4000-8001-000000000007"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
knowledge_base_id: '44444444-4444-4444-8444-444444444444',
interview_ids: ['de300000-0000-4000-8001-000000000007']
})
};
fetch('https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews', 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://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'knowledge_base_id' => '44444444-4444-4444-8444-444444444444',
'interview_ids' => [
'de300000-0000-4000-8001-000000000007'
]
]),
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://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews"
payload := strings.NewReader("{\n \"knowledge_base_id\": \"44444444-4444-4444-8444-444444444444\",\n \"interview_ids\": [\n \"de300000-0000-4000-8001-000000000007\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"knowledge_base_id\": \"44444444-4444-4444-8444-444444444444\",\n \"interview_ids\": [\n \"de300000-0000-4000-8001-000000000007\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/knowledge-base-document-set-interviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"knowledge_base_id\": \"44444444-4444-4444-8444-444444444444\",\n \"interview_ids\": [\n \"de300000-0000-4000-8001-000000000007\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"knowledge_base_id": "<string>",
"limit_to_interviews": true,
"interview_ids": [
"<string>"
]
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Authorizations
Supabase JWT — Authorization: Bearer <token>.
Body
The document to change: knowledge_base_id from the upload response or from knowledge-base-document-list.
1"44444444-4444-4444-8444-444444444444"
The whole new list, which replaces the old one. An interview uses this knowledge base once its knowledge_base_store_id is set (job-interview-create / job-interview-update): link it first. A list limits the document to those interviews, an empty list to no interview, and null opens it to every interview on the knowledge base. Required, so that leaving it out can never open a document. Each interview must belong to the same company as the document and use the same knowledge base.
["de300000-0000-4000-8001-000000000007"]
Response
The limit was replaced. The response reports the new one.
The document that was changed.
True when the document is limited to the interviews in interview_ids. False when every interview on the knowledge base can use it.
The interviews this document is limited to. Present only when limit_to_interviews is true; an empty list means no interview can use it.