Skip to main content
PATCH
/
networks
/
reporting
/
conversions
Update Conversion Status
curl --request PATCH \
  --url https://api.eflow.team/v1/networks/reporting/conversions \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "conversion_ids": [
    "9c0534c99eb34b57bda16f92b6d5d3d4",
    "307971a211b74db98c3c11d5e83c082a",
    "5759e555b03845279bcdb9c2d0391b9e"
  ],
  "conversion_status": "rejected"
}
'
import requests

url = "https://api.eflow.team/v1/networks/reporting/conversions"

payload = {
"conversion_ids": ["9c0534c99eb34b57bda16f92b6d5d3d4", "307971a211b74db98c3c11d5e83c082a", "5759e555b03845279bcdb9c2d0391b9e"],
"conversion_status": "rejected"
}
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({
conversion_ids: [
'9c0534c99eb34b57bda16f92b6d5d3d4',
'307971a211b74db98c3c11d5e83c082a',
'5759e555b03845279bcdb9c2d0391b9e'
],
conversion_status: 'rejected'
})
};

fetch('https://api.eflow.team/v1/networks/reporting/conversions', 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/conversions",
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([
'conversion_ids' => [
'9c0534c99eb34b57bda16f92b6d5d3d4',
'307971a211b74db98c3c11d5e83c082a',
'5759e555b03845279bcdb9c2d0391b9e'
],
'conversion_status' => 'rejected'
]),
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/conversions"

payload := strings.NewReader("{\n \"conversion_ids\": [\n \"9c0534c99eb34b57bda16f92b6d5d3d4\",\n \"307971a211b74db98c3c11d5e83c082a\",\n \"5759e555b03845279bcdb9c2d0391b9e\"\n ],\n \"conversion_status\": \"rejected\"\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/conversions")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"conversion_ids\": [\n \"9c0534c99eb34b57bda16f92b6d5d3d4\",\n \"307971a211b74db98c3c11d5e83c082a\",\n \"5759e555b03845279bcdb9c2d0391b9e\"\n ],\n \"conversion_status\": \"rejected\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.eflow.team/v1/networks/reporting/conversions")

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 \"conversion_ids\": [\n \"9c0534c99eb34b57bda16f92b6d5d3d4\",\n \"307971a211b74db98c3c11d5e83c082a\",\n \"5759e555b03845279bcdb9c2d0391b9e\"\n ],\n \"conversion_status\": \"rejected\"\n}"

response = http.request(request)
puts response.read_body
{
  "result": true
}
Modify the status of one or more conversions. Accepts an array of conversion IDs and the target status (approved or rejected).

Authorizations

X-Eflow-Api-Key
string
header
required

The Everflow API key generated from the Control Center > Security.

Body

application/json
conversion_ids
string[] | null
required

IDs of the conversions to update.

conversion_status
enum<string>
required

Target status for the conversions.

Available options:
approved,
rejected

Response

200 - application/json
result
boolean