Update a tracked profile
curl --request PATCH \
--url https://api.trytikt.com/v1/tracked-profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_label": "<string>",
"auto_harvest": true
}
'import requests
url = "https://api.trytikt.com/v1/tracked-profiles/{id}"
payload = {
"custom_label": "<string>",
"auto_harvest": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({custom_label: '<string>', auto_harvest: true})
};
fetch('https://api.trytikt.com/v1/tracked-profiles/{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.trytikt.com/v1/tracked-profiles/{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([
'custom_label' => '<string>',
'auto_harvest' => true
]),
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://api.trytikt.com/v1/tracked-profiles/{id}"
payload := strings.NewReader("{\n \"custom_label\": \"<string>\",\n \"auto_harvest\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.trytikt.com/v1/tracked-profiles/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_label\": \"<string>\",\n \"auto_harvest\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trytikt.com/v1/tracked-profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_label\": \"<string>\",\n \"auto_harvest\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"linkedin_url": "<string>",
"public_identifier": "<string>",
"name": "<string>",
"avatar_url": "<string>",
"relationship": "<string>",
"custom_label": "<string>",
"state": "<string>",
"auto_harvest": {
"enabled": true,
"since": "<string>"
},
"onboarding_state": "<string>",
"followers_count": 123,
"posts_last_28_days": 123,
"posts_per_week": 123,
"typical_engagement": 123,
"engagement_p90": 123,
"followers_gained_7d": 123,
"followers_gained_30d": 123,
"last_post_at": "<string>",
"added_at": "<string>",
"console_url": "<string>"
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}Tracked profiles
Update a tracked profile
Change a tracked profile’s relationship or label, or pause and resume the harvest of its posts (auto_harvest). Pausing counts against the most profiles a workspace can pause. Requires a Read and write key.
PATCH
/
v1
/
tracked-profiles
/
{id}
Update a tracked profile
curl --request PATCH \
--url https://api.trytikt.com/v1/tracked-profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_label": "<string>",
"auto_harvest": true
}
'import requests
url = "https://api.trytikt.com/v1/tracked-profiles/{id}"
payload = {
"custom_label": "<string>",
"auto_harvest": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({custom_label: '<string>', auto_harvest: true})
};
fetch('https://api.trytikt.com/v1/tracked-profiles/{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.trytikt.com/v1/tracked-profiles/{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([
'custom_label' => '<string>',
'auto_harvest' => true
]),
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://api.trytikt.com/v1/tracked-profiles/{id}"
payload := strings.NewReader("{\n \"custom_label\": \"<string>\",\n \"auto_harvest\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.trytikt.com/v1/tracked-profiles/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_label\": \"<string>\",\n \"auto_harvest\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trytikt.com/v1/tracked-profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_label\": \"<string>\",\n \"auto_harvest\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"linkedin_url": "<string>",
"public_identifier": "<string>",
"name": "<string>",
"avatar_url": "<string>",
"relationship": "<string>",
"custom_label": "<string>",
"state": "<string>",
"auto_harvest": {
"enabled": true,
"since": "<string>"
},
"onboarding_state": "<string>",
"followers_count": 123,
"posts_last_28_days": 123,
"posts_per_week": 123,
"typical_engagement": 123,
"engagement_p90": 123,
"followers_gained_7d": 123,
"followers_gained_30d": 123,
"last_post_at": "<string>",
"added_at": "<string>",
"console_url": "<string>"
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "parametre_inconnu",
"message": "<string>",
"status": 123,
"request_id": "<string>",
"details": {}
}
}Authorizations
Your API key, created in Settings › API: Authorization: Bearer tikt_live_….
Path Parameters
The tracked profile's id.
Body
application/json
What the profile is to you: self, company, teammate, competitor, influencer (the default), investor, custom.
Available options:
self, company, teammate, competitor, influencer, investor, custom Your own label, shown when the relationship is custom. null to clear it.
Required string length:
1 - 80false pauses the harvest of the profile's posts; true resumes it from now.
Response
Success.
Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Show child attributes
Show child attributes
Pattern:
^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ$Pattern:
^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ$