Update a persona
curl --request POST \
--url https://api.linkedcamp.com/v2/persona_update \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"personaId": "<string>",
"title": "<string>",
"description": "<string>",
"criteria": {
"jobTitles": [
"<string>"
],
"jobTitlesExclude": [
"<string>"
],
"seniority": [
"<string>"
],
"industries": [
"<string>"
],
"companySize": [
"<string>"
],
"locations": [
"<string>"
],
"keywords": [
"<string>"
],
"keywordsExclude": [
"<string>"
],
"yearsExperienceMin": 1,
"yearsExperienceMax": 1
}
}
'import requests
url = "https://api.linkedcamp.com/v2/persona_update"
payload = {
"personaId": "<string>",
"title": "<string>",
"description": "<string>",
"criteria": {
"jobTitles": ["<string>"],
"jobTitlesExclude": ["<string>"],
"seniority": ["<string>"],
"industries": ["<string>"],
"companySize": ["<string>"],
"locations": ["<string>"],
"keywords": ["<string>"],
"keywordsExclude": ["<string>"],
"yearsExperienceMin": 1,
"yearsExperienceMax": 1
}
}
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({
personaId: '<string>',
title: '<string>',
description: '<string>',
criteria: {
jobTitles: ['<string>'],
jobTitlesExclude: ['<string>'],
seniority: ['<string>'],
industries: ['<string>'],
companySize: ['<string>'],
locations: ['<string>'],
keywords: ['<string>'],
keywordsExclude: ['<string>'],
yearsExperienceMin: 1,
yearsExperienceMax: 1
}
})
};
fetch('https://api.linkedcamp.com/v2/persona_update', 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.linkedcamp.com/v2/persona_update",
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([
'personaId' => '<string>',
'title' => '<string>',
'description' => '<string>',
'criteria' => [
'jobTitles' => [
'<string>'
],
'jobTitlesExclude' => [
'<string>'
],
'seniority' => [
'<string>'
],
'industries' => [
'<string>'
],
'companySize' => [
'<string>'
],
'locations' => [
'<string>'
],
'keywords' => [
'<string>'
],
'keywordsExclude' => [
'<string>'
],
'yearsExperienceMin' => 1,
'yearsExperienceMax' => 1
]
]),
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.linkedcamp.com/v2/persona_update"
payload := strings.NewReader("{\n \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\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.linkedcamp.com/v2/persona_update")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/persona_update")
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 \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/persona_update");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}Personas
Update a persona
Destructive. It sends, publishes, launches or deletes. Get a person to confirm before calling it.
Change a persona’s criteria. Live QUALIFIER steps pick this up on their next evaluation — leads already past the step are not re-scored, so editing a persona never revisits a decision already made. Check usageCount in persona_list first: a persona shared by several flows changes all of them at once. Requires a Pro or Agency plan.
POST
/
persona_update
Update a persona
curl --request POST \
--url https://api.linkedcamp.com/v2/persona_update \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"personaId": "<string>",
"title": "<string>",
"description": "<string>",
"criteria": {
"jobTitles": [
"<string>"
],
"jobTitlesExclude": [
"<string>"
],
"seniority": [
"<string>"
],
"industries": [
"<string>"
],
"companySize": [
"<string>"
],
"locations": [
"<string>"
],
"keywords": [
"<string>"
],
"keywordsExclude": [
"<string>"
],
"yearsExperienceMin": 1,
"yearsExperienceMax": 1
}
}
'import requests
url = "https://api.linkedcamp.com/v2/persona_update"
payload = {
"personaId": "<string>",
"title": "<string>",
"description": "<string>",
"criteria": {
"jobTitles": ["<string>"],
"jobTitlesExclude": ["<string>"],
"seniority": ["<string>"],
"industries": ["<string>"],
"companySize": ["<string>"],
"locations": ["<string>"],
"keywords": ["<string>"],
"keywordsExclude": ["<string>"],
"yearsExperienceMin": 1,
"yearsExperienceMax": 1
}
}
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({
personaId: '<string>',
title: '<string>',
description: '<string>',
criteria: {
jobTitles: ['<string>'],
jobTitlesExclude: ['<string>'],
seniority: ['<string>'],
industries: ['<string>'],
companySize: ['<string>'],
locations: ['<string>'],
keywords: ['<string>'],
keywordsExclude: ['<string>'],
yearsExperienceMin: 1,
yearsExperienceMax: 1
}
})
};
fetch('https://api.linkedcamp.com/v2/persona_update', 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.linkedcamp.com/v2/persona_update",
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([
'personaId' => '<string>',
'title' => '<string>',
'description' => '<string>',
'criteria' => [
'jobTitles' => [
'<string>'
],
'jobTitlesExclude' => [
'<string>'
],
'seniority' => [
'<string>'
],
'industries' => [
'<string>'
],
'companySize' => [
'<string>'
],
'locations' => [
'<string>'
],
'keywords' => [
'<string>'
],
'keywordsExclude' => [
'<string>'
],
'yearsExperienceMin' => 1,
'yearsExperienceMax' => 1
]
]),
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.linkedcamp.com/v2/persona_update"
payload := strings.NewReader("{\n \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\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.linkedcamp.com/v2/persona_update")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/persona_update")
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 \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/persona_update");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"personaId\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"criteria\": {\n \"jobTitles\": [\n \"<string>\"\n ],\n \"jobTitlesExclude\": [\n \"<string>\"\n ],\n \"seniority\": [\n \"<string>\"\n ],\n \"industries\": [\n \"<string>\"\n ],\n \"companySize\": [\n \"<string>\"\n ],\n \"locations\": [\n \"<string>\"\n ],\n \"keywords\": [\n \"<string>\"\n ],\n \"keywordsExclude\": [\n \"<string>\"\n ],\n \"yearsExperienceMin\": 1,\n \"yearsExperienceMax\": 1\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}Body
application/json
Response
The result, as JSON. Writes answer { "ok": true, "message": ..., "data": ... }.
The response is of type object.
