Update On-Hold Conversion Status
curl --request PATCH \
--url https://api.eflow.team/v1/networks/reporting/onhold \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"on_hold_conversion_ids": [
"baab7e25bba046e6b080c799729c5cba",
"a91a421038ab46b694547f4db636db80"
],
"status": "approved"
}
'import requests
url = "https://api.eflow.team/v1/networks/reporting/onhold"
payload = {
"on_hold_conversion_ids": ["baab7e25bba046e6b080c799729c5cba", "a91a421038ab46b694547f4db636db80"],
"status": "approved"
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
on_hold_conversion_ids: ['baab7e25bba046e6b080c799729c5cba', 'a91a421038ab46b694547f4db636db80'],
status: 'approved'
})
};
fetch('https://api.eflow.team/v1/networks/reporting/onhold', 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.eflow.team/v1/networks/reporting/onhold",
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([
'on_hold_conversion_ids' => [
'baab7e25bba046e6b080c799729c5cba',
'a91a421038ab46b694547f4db636db80'
],
'status' => 'approved'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-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.eflow.team/v1/networks/reporting/onhold"
payload := strings.NewReader("{\n \"on_hold_conversion_ids\": [\n \"baab7e25bba046e6b080c799729c5cba\",\n \"a91a421038ab46b694547f4db636db80\"\n ],\n \"status\": \"approved\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Eflow-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.patch("https://api.eflow.team/v1/networks/reporting/onhold")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"on_hold_conversion_ids\": [\n \"baab7e25bba046e6b080c799729c5cba\",\n \"a91a421038ab46b694547f4db636db80\"\n ],\n \"status\": \"approved\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/reporting/onhold")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"on_hold_conversion_ids\": [\n \"baab7e25bba046e6b080c799729c5cba\",\n \"a91a421038ab46b694547f4db636db80\"\n ],\n \"status\": \"approved\"\n}"
response = http.request(request)
puts response.read_body{
"result": true
}Conversion Updates
Update On-Hold Conversion Status
PATCH
/
networks
/
reporting
/
onhold
Update On-Hold Conversion Status
curl --request PATCH \
--url https://api.eflow.team/v1/networks/reporting/onhold \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"on_hold_conversion_ids": [
"baab7e25bba046e6b080c799729c5cba",
"a91a421038ab46b694547f4db636db80"
],
"status": "approved"
}
'import requests
url = "https://api.eflow.team/v1/networks/reporting/onhold"
payload = {
"on_hold_conversion_ids": ["baab7e25bba046e6b080c799729c5cba", "a91a421038ab46b694547f4db636db80"],
"status": "approved"
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
on_hold_conversion_ids: ['baab7e25bba046e6b080c799729c5cba', 'a91a421038ab46b694547f4db636db80'],
status: 'approved'
})
};
fetch('https://api.eflow.team/v1/networks/reporting/onhold', 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.eflow.team/v1/networks/reporting/onhold",
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([
'on_hold_conversion_ids' => [
'baab7e25bba046e6b080c799729c5cba',
'a91a421038ab46b694547f4db636db80'
],
'status' => 'approved'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-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.eflow.team/v1/networks/reporting/onhold"
payload := strings.NewReader("{\n \"on_hold_conversion_ids\": [\n \"baab7e25bba046e6b080c799729c5cba\",\n \"a91a421038ab46b694547f4db636db80\"\n ],\n \"status\": \"approved\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Eflow-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.patch("https://api.eflow.team/v1/networks/reporting/onhold")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"on_hold_conversion_ids\": [\n \"baab7e25bba046e6b080c799729c5cba\",\n \"a91a421038ab46b694547f4db636db80\"\n ],\n \"status\": \"approved\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/reporting/onhold")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"on_hold_conversion_ids\": [\n \"baab7e25bba046e6b080c799729c5cba\",\n \"a91a421038ab46b694547f4db636db80\"\n ],\n \"status\": \"approved\"\n}"
response = http.request(request)
puts response.read_body{
"result": true
}Approve or reject on-hold conversions. Provide an array of conversion IDs and the target status to update them in bulk.
Authorizations
The Everflow API key generated from the Control Center > Security.
Body
application/json
Response
200 - application/json
Whether the update was successful.
Was this page helpful?
⌘I
