Update Enrichment Object
curl --request PATCH \
--url https://agent.crowdlisten.com/api/sweeps/objects/{object_id} \
--header 'Content-Type: application/json' \
--data '
{
"action_plan": {
"objective": "<string>",
"steps": [
"<string>"
],
"owner": "<string>",
"timeframe_days": 30,
"addressable_audience": 500000000,
"adoption_rate_low": 50,
"adoption_rate_high": 50,
"outcome_rate_low": 50,
"outcome_rate_high": 50,
"outcome_unit": "<string>",
"success_metric": "<string>",
"assumptions": [
"<string>"
]
}
}
'import requests
url = "https://agent.crowdlisten.com/api/sweeps/objects/{object_id}"
payload = { "action_plan": {
"objective": "<string>",
"steps": ["<string>"],
"owner": "<string>",
"timeframe_days": 30,
"addressable_audience": 500000000,
"adoption_rate_low": 50,
"adoption_rate_high": 50,
"outcome_rate_low": 50,
"outcome_rate_high": 50,
"outcome_unit": "<string>",
"success_metric": "<string>",
"assumptions": ["<string>"]
} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
action_plan: {
objective: '<string>',
steps: ['<string>'],
owner: '<string>',
timeframe_days: 30,
addressable_audience: 500000000,
adoption_rate_low: 50,
adoption_rate_high: 50,
outcome_rate_low: 50,
outcome_rate_high: 50,
outcome_unit: '<string>',
success_metric: '<string>',
assumptions: ['<string>']
}
})
};
fetch('https://agent.crowdlisten.com/api/sweeps/objects/{object_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://agent.crowdlisten.com/api/sweeps/objects/{object_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([
'action_plan' => [
'objective' => '<string>',
'steps' => [
'<string>'
],
'owner' => '<string>',
'timeframe_days' => 30,
'addressable_audience' => 500000000,
'adoption_rate_low' => 50,
'adoption_rate_high' => 50,
'outcome_rate_low' => 50,
'outcome_rate_high' => 50,
'outcome_unit' => '<string>',
'success_metric' => '<string>',
'assumptions' => [
'<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"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://agent.crowdlisten.com/api/sweeps/objects/{object_id}"
payload := strings.NewReader("{\n \"action_plan\": {\n \"objective\": \"<string>\",\n \"steps\": [\n \"<string>\"\n ],\n \"owner\": \"<string>\",\n \"timeframe_days\": 30,\n \"addressable_audience\": 500000000,\n \"adoption_rate_low\": 50,\n \"adoption_rate_high\": 50,\n \"outcome_rate_low\": 50,\n \"outcome_rate_high\": 50,\n \"outcome_unit\": \"<string>\",\n \"success_metric\": \"<string>\",\n \"assumptions\": [\n \"<string>\"\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://agent.crowdlisten.com/api/sweeps/objects/{object_id}")
.header("Content-Type", "application/json")
.body("{\n \"action_plan\": {\n \"objective\": \"<string>\",\n \"steps\": [\n \"<string>\"\n ],\n \"owner\": \"<string>\",\n \"timeframe_days\": 30,\n \"addressable_audience\": 500000000,\n \"adoption_rate_low\": 50,\n \"adoption_rate_high\": 50,\n \"outcome_rate_low\": 50,\n \"outcome_rate_high\": 50,\n \"outcome_unit\": \"<string>\",\n \"success_metric\": \"<string>\",\n \"assumptions\": [\n \"<string>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/api/sweeps/objects/{object_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"action_plan\": {\n \"objective\": \"<string>\",\n \"steps\": [\n \"<string>\"\n ],\n \"owner\": \"<string>\",\n \"timeframe_days\": 30,\n \"addressable_audience\": 500000000,\n \"adoption_rate_low\": 50,\n \"adoption_rate_high\": 50,\n \"outcome_rate_low\": 50,\n \"outcome_rate_high\": 50,\n \"outcome_unit\": \"<string>\",\n \"success_metric\": \"<string>\",\n \"assumptions\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}sweeps
Update Enrichment Object
Advance/dismiss an action object as a workspace editor or owner.
PATCH
/
api
/
sweeps
/
objects
/
{object_id}
Update Enrichment Object
curl --request PATCH \
--url https://agent.crowdlisten.com/api/sweeps/objects/{object_id} \
--header 'Content-Type: application/json' \
--data '
{
"action_plan": {
"objective": "<string>",
"steps": [
"<string>"
],
"owner": "<string>",
"timeframe_days": 30,
"addressable_audience": 500000000,
"adoption_rate_low": 50,
"adoption_rate_high": 50,
"outcome_rate_low": 50,
"outcome_rate_high": 50,
"outcome_unit": "<string>",
"success_metric": "<string>",
"assumptions": [
"<string>"
]
}
}
'import requests
url = "https://agent.crowdlisten.com/api/sweeps/objects/{object_id}"
payload = { "action_plan": {
"objective": "<string>",
"steps": ["<string>"],
"owner": "<string>",
"timeframe_days": 30,
"addressable_audience": 500000000,
"adoption_rate_low": 50,
"adoption_rate_high": 50,
"outcome_rate_low": 50,
"outcome_rate_high": 50,
"outcome_unit": "<string>",
"success_metric": "<string>",
"assumptions": ["<string>"]
} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
action_plan: {
objective: '<string>',
steps: ['<string>'],
owner: '<string>',
timeframe_days: 30,
addressable_audience: 500000000,
adoption_rate_low: 50,
adoption_rate_high: 50,
outcome_rate_low: 50,
outcome_rate_high: 50,
outcome_unit: '<string>',
success_metric: '<string>',
assumptions: ['<string>']
}
})
};
fetch('https://agent.crowdlisten.com/api/sweeps/objects/{object_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://agent.crowdlisten.com/api/sweeps/objects/{object_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([
'action_plan' => [
'objective' => '<string>',
'steps' => [
'<string>'
],
'owner' => '<string>',
'timeframe_days' => 30,
'addressable_audience' => 500000000,
'adoption_rate_low' => 50,
'adoption_rate_high' => 50,
'outcome_rate_low' => 50,
'outcome_rate_high' => 50,
'outcome_unit' => '<string>',
'success_metric' => '<string>',
'assumptions' => [
'<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"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://agent.crowdlisten.com/api/sweeps/objects/{object_id}"
payload := strings.NewReader("{\n \"action_plan\": {\n \"objective\": \"<string>\",\n \"steps\": [\n \"<string>\"\n ],\n \"owner\": \"<string>\",\n \"timeframe_days\": 30,\n \"addressable_audience\": 500000000,\n \"adoption_rate_low\": 50,\n \"adoption_rate_high\": 50,\n \"outcome_rate_low\": 50,\n \"outcome_rate_high\": 50,\n \"outcome_unit\": \"<string>\",\n \"success_metric\": \"<string>\",\n \"assumptions\": [\n \"<string>\"\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://agent.crowdlisten.com/api/sweeps/objects/{object_id}")
.header("Content-Type", "application/json")
.body("{\n \"action_plan\": {\n \"objective\": \"<string>\",\n \"steps\": [\n \"<string>\"\n ],\n \"owner\": \"<string>\",\n \"timeframe_days\": 30,\n \"addressable_audience\": 500000000,\n \"adoption_rate_low\": 50,\n \"adoption_rate_high\": 50,\n \"outcome_rate_low\": 50,\n \"outcome_rate_high\": 50,\n \"outcome_unit\": \"<string>\",\n \"success_metric\": \"<string>\",\n \"assumptions\": [\n \"<string>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.crowdlisten.com/api/sweeps/objects/{object_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"action_plan\": {\n \"objective\": \"<string>\",\n \"steps\": [\n \"<string>\"\n ],\n \"owner\": \"<string>\",\n \"timeframe_days\": 30,\n \"addressable_audience\": 500000000,\n \"adoption_rate_low\": 50,\n \"adoption_rate_high\": 50,\n \"outcome_rate_low\": 50,\n \"outcome_rate_high\": 50,\n \"outcome_unit\": \"<string>\",\n \"success_metric\": \"<string>\",\n \"assumptions\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}