Score a low yield scoring run's search again with fixes
curl --request POST \
--url https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fix_ids": [
"<string>"
],
"request_id": "<string>"
}
'import requests
url = "https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/"
payload = {
"fix_ids": ["<string>"],
"request_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fix_ids: ['<string>'], request_id: '<string>'})
};
fetch('https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/', 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.getoneprofile.ai/icp-fit/runs/{run_id}/retry/",
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([
'fix_ids' => [
'<string>'
],
'request_id' => '<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.getoneprofile.ai/icp-fit/runs/{run_id}/retry/"
payload := strings.NewReader("{\n \"fix_ids\": [\n \"<string>\"\n ],\n \"request_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fix_ids\": [\n \"<string>\"\n ],\n \"request_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fix_ids\": [\n \"<string>\"\n ],\n \"request_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"brought_table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"counters": {
"added_anyway": 123,
"bought": 123,
"failed": 123,
"linkedin_reads": 123,
"poor": 123,
"poor_after_linkedin": 123,
"possible": 123,
"queued": 123,
"ranked": 123,
"ranking": 123,
"rejected_first_look": 123,
"reused": 123,
"strong": 123
},
"created_at": "2023-11-07T05:31:56Z",
"credits_charged": 123,
"done_reason": "goal_reached",
"goal": 123,
"icp_version_at_start": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"include_people_already_in_tables": true,
"max_credits": 123,
"max_subjects": 123,
"pause_reason": "by_person",
"price_credits": 123,
"query_digest": "<string>",
"record_type": "people",
"sample_size": 123,
"search_summary": "<string>",
"source": "find_leads",
"status": "queued",
"status_label": "<string>",
"status_line": "<string>",
"stop_reason": "by_person",
"subject_kind": "person",
"then_bring": {
"enrichments": [
"find_email"
],
"fill_as_found": false,
"include_possible": false,
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}icp-fit
Score a low yield scoring run's search again with fixes
“Re-run with these filters”: stop a scoring run paused for low yield and start a new one on its search with the fixes applied, toward the same goal. Everyone already scored is reused at no charge. Answers the new scoring run.
POST
/
icp-fit
/
runs
/
{run_id}
/
retry
/
Score a low yield scoring run's search again with fixes
curl --request POST \
--url https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fix_ids": [
"<string>"
],
"request_id": "<string>"
}
'import requests
url = "https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/"
payload = {
"fix_ids": ["<string>"],
"request_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fix_ids: ['<string>'], request_id: '<string>'})
};
fetch('https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/', 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.getoneprofile.ai/icp-fit/runs/{run_id}/retry/",
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([
'fix_ids' => [
'<string>'
],
'request_id' => '<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.getoneprofile.ai/icp-fit/runs/{run_id}/retry/"
payload := strings.NewReader("{\n \"fix_ids\": [\n \"<string>\"\n ],\n \"request_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fix_ids\": [\n \"<string>\"\n ],\n \"request_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/icp-fit/runs/{run_id}/retry/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fix_ids\": [\n \"<string>\"\n ],\n \"request_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"brought_table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"counters": {
"added_anyway": 123,
"bought": 123,
"failed": 123,
"linkedin_reads": 123,
"poor": 123,
"poor_after_linkedin": 123,
"possible": 123,
"queued": 123,
"ranked": 123,
"ranking": 123,
"rejected_first_look": 123,
"reused": 123,
"strong": 123
},
"created_at": "2023-11-07T05:31:56Z",
"credits_charged": 123,
"done_reason": "goal_reached",
"goal": 123,
"icp_version_at_start": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"include_people_already_in_tables": true,
"max_credits": 123,
"max_subjects": 123,
"pause_reason": "by_person",
"price_credits": 123,
"query_digest": "<string>",
"record_type": "people",
"sample_size": 123,
"search_summary": "<string>",
"source": "find_leads",
"status": "queued",
"status_label": "<string>",
"status_line": "<string>",
"stop_reason": "by_person",
"subject_kind": "person",
"then_bring": {
"enrichments": [
"find_email"
],
"fill_as_found": false,
"include_possible": false,
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_name": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Body
application/json
Response
Successful Response
Was this page helpful?