Add or Update Portal Candidate
curl --request PUT \
--url https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"includeResult": true,
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"notifyReviewers": false
}
'import requests
url = "https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}"
payload = {
"includeResult": True,
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"notifyReviewers": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
includeResult: true,
submittal: {
pitch: '<string>',
availability: '<string>',
compensation: '<string>',
workAuthorization: '<string>',
workSetup: '<string>'
},
notifyReviewers: false
})
};
fetch('https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}', 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.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'includeResult' => true,
'submittal' => [
'pitch' => '<string>',
'availability' => '<string>',
'compensation' => '<string>',
'workAuthorization' => '<string>',
'workSetup' => '<string>'
],
'notifyReviewers' => false
]),
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.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}"
payload := strings.NewReader("{\n \"includeResult\": true,\n \"submittal\": {\n \"pitch\": \"<string>\",\n \"availability\": \"<string>\",\n \"compensation\": \"<string>\",\n \"workAuthorization\": \"<string>\",\n \"workSetup\": \"<string>\"\n },\n \"notifyReviewers\": false\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"includeResult\": true,\n \"submittal\": {\n \"pitch\": \"<string>\",\n \"availability\": \"<string>\",\n \"compensation\": \"<string>\",\n \"workAuthorization\": \"<string>\",\n \"workSetup\": \"<string>\"\n },\n \"notifyReviewers\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"includeResult\": true,\n \"submittal\": {\n \"pitch\": \"<string>\",\n \"availability\": \"<string>\",\n \"compensation\": \"<string>\",\n \"workAuthorization\": \"<string>\",\n \"workSetup\": \"<string>\"\n },\n \"notifyReviewers\": false\n}"
response = http.request(request)
puts response.read_body{
"created": true,
"candidate": {
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"created": true,
"candidate": {
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Client Portals
Add or Update Portal Candidate
Add a candidate to a Client Portal, or update one already on it. Other candidates are never changed. Returns 201 when added and 200 when updated. A new candidate shows their latest completed result for the job’s problem unless includeResult is false.
Required scope: client_portals:write
PUT
/
api
/
public
/
client-portals
/
{portalId}
/
candidates
/
{candidateId}
Add or Update Portal Candidate
curl --request PUT \
--url https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"includeResult": true,
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"notifyReviewers": false
}
'import requests
url = "https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}"
payload = {
"includeResult": True,
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"notifyReviewers": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
includeResult: true,
submittal: {
pitch: '<string>',
availability: '<string>',
compensation: '<string>',
workAuthorization: '<string>',
workSetup: '<string>'
},
notifyReviewers: false
})
};
fetch('https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}', 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.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'includeResult' => true,
'submittal' => [
'pitch' => '<string>',
'availability' => '<string>',
'compensation' => '<string>',
'workAuthorization' => '<string>',
'workSetup' => '<string>'
],
'notifyReviewers' => false
]),
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.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}"
payload := strings.NewReader("{\n \"includeResult\": true,\n \"submittal\": {\n \"pitch\": \"<string>\",\n \"availability\": \"<string>\",\n \"compensation\": \"<string>\",\n \"workAuthorization\": \"<string>\",\n \"workSetup\": \"<string>\"\n },\n \"notifyReviewers\": false\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"includeResult\": true,\n \"submittal\": {\n \"pitch\": \"<string>\",\n \"availability\": \"<string>\",\n \"compensation\": \"<string>\",\n \"workAuthorization\": \"<string>\",\n \"workSetup\": \"<string>\"\n },\n \"notifyReviewers\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ropes.ai/api/public/client-portals/{portalId}/candidates/{candidateId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"includeResult\": true,\n \"submittal\": {\n \"pitch\": \"<string>\",\n \"availability\": \"<string>\",\n \"compensation\": \"<string>\",\n \"workAuthorization\": \"<string>\",\n \"workSetup\": \"<string>\"\n },\n \"notifyReviewers\": false\n}"
response = http.request(request)
puts response.read_body{
"created": true,
"candidate": {
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"created": true,
"candidate": {
"candidateId": "<string>",
"name": "<string>",
"email": "<string>",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"problemId": "<string>",
"resultInterviewId": "<string>",
"submittal": {
"pitch": "<string>",
"availability": "<string>",
"compensation": "<string>",
"workAuthorization": "<string>",
"workSetup": "<string>"
},
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Each key carries scopes chosen when it is created: candidates:read, candidates:write, assessments:read, assessments:write, problems:read, problems:write, results:read, id_checks:read, id_checks:write, jobs:read, jobs:write, client_portals:read, client_portals:write. Keys created before scopes existed have full access. A request with a key that lacks an operation's scope returns 403 naming the missing scope.
Path Parameters
Body
application/json