ACTIVATION
ACTIVATION
POST
/
activation
ACTIVATION
curl --request POST \
--url https://prod.resdefio.com/activation \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"Type": "1",
"Route": "search",
"Survey_Number": "1111,2222,3333,4444",
"Session_Id": "<string>",
"IP_Address": "<string>",
"Cookie": "<string>",
"Panel_Id": "<string>",
"Hashed_Email": "<string>",
"User_Agent": "<string>"
}
'import requests
url = "https://prod.resdefio.com/activation"
payload = {
"Type": "1",
"Route": "search",
"Survey_Number": "1111,2222,3333,4444",
"Session_Id": "<string>",
"IP_Address": "<string>",
"Cookie": "<string>",
"Panel_Id": "<string>",
"Hashed_Email": "<string>",
"User_Agent": "<string>"
}
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({
Type: '1',
Route: 'search',
Survey_Number: '1111,2222,3333,4444',
Session_Id: '<string>',
IP_Address: '<string>',
Cookie: '<string>',
Panel_Id: '<string>',
Hashed_Email: '<string>',
User_Agent: '<string>'
})
};
fetch('https://prod.resdefio.com/activation', 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://prod.resdefio.com/activation",
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([
'Type' => '1',
'Route' => 'search',
'Survey_Number' => '1111,2222,3333,4444',
'Session_Id' => '<string>',
'IP_Address' => '<string>',
'Cookie' => '<string>',
'Panel_Id' => '<string>',
'Hashed_Email' => '<string>',
'User_Agent' => '<string>'
]),
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://prod.resdefio.com/activation"
payload := strings.NewReader("{\n \"Type\": \"1\",\n \"Route\": \"search\",\n \"Survey_Number\": \"1111,2222,3333,4444\",\n \"Session_Id\": \"<string>\",\n \"IP_Address\": \"<string>\",\n \"Cookie\": \"<string>\",\n \"Panel_Id\": \"<string>\",\n \"Hashed_Email\": \"<string>\",\n \"User_Agent\": \"<string>\"\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://prod.resdefio.com/activation")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"Type\": \"1\",\n \"Route\": \"search\",\n \"Survey_Number\": \"1111,2222,3333,4444\",\n \"Session_Id\": \"<string>\",\n \"IP_Address\": \"<string>\",\n \"Cookie\": \"<string>\",\n \"Panel_Id\": \"<string>\",\n \"Hashed_Email\": \"<string>\",\n \"User_Agent\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.resdefio.com/activation")
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 \"Type\": \"1\",\n \"Route\": \"search\",\n \"Survey_Number\": \"1111,2222,3333,4444\",\n \"Session_Id\": \"<string>\",\n \"IP_Address\": \"<string>\",\n \"Cookie\": \"<string>\",\n \"Panel_Id\": \"<string>\",\n \"Hashed_Email\": \"<string>\",\n \"User_Agent\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"Action": "DeActivated Successfully!",
"Message": "Records Processed:4"
}Activates or deactivates surveys in the SEARCH duplicate check. Send a JSON body with:
Route— the API the change applies to.search(SEARCH API) is the default.Survey_Number— survey numbers separated by commas, for example1111,2222,3333,4444.Type—1to deactivate the surveys from the dupes check,2to activate them.
x-api-key header. See ACTIVATION for how the values combine, and the Activation Integration guide for a full browser sample.Authorizations
API key issued for the resdefio.com APIs.
Body
application/json
1 deactivates the survey(s) from the dupes check; 2 activates them.
Available options:
1, 2 Example:
"1"
API the activation applies to. search (SEARCH API) is the default.
Example:
"search"
Survey numbers, separated by commas. Formerly sy_nr. Combined with the other values; at most 500 combined records are processed.
Example:
"1111,2222,3333,4444"
Session IDs. Formerly sn_ud. Combined with the other values; a record must match all of them.
IP address. Formerly rt_ip_address.
Cookie value. Formerly rt_ce_ud.
Panel ID. Formerly rt_sr_pd.
Hashed email. Formerly rt_hd_el.
User agent. Formerly rt_user_agent.
Was this page helpful?
ACTIVATION
curl --request POST \
--url https://prod.resdefio.com/activation \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"Type": "1",
"Route": "search",
"Survey_Number": "1111,2222,3333,4444",
"Session_Id": "<string>",
"IP_Address": "<string>",
"Cookie": "<string>",
"Panel_Id": "<string>",
"Hashed_Email": "<string>",
"User_Agent": "<string>"
}
'import requests
url = "https://prod.resdefio.com/activation"
payload = {
"Type": "1",
"Route": "search",
"Survey_Number": "1111,2222,3333,4444",
"Session_Id": "<string>",
"IP_Address": "<string>",
"Cookie": "<string>",
"Panel_Id": "<string>",
"Hashed_Email": "<string>",
"User_Agent": "<string>"
}
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({
Type: '1',
Route: 'search',
Survey_Number: '1111,2222,3333,4444',
Session_Id: '<string>',
IP_Address: '<string>',
Cookie: '<string>',
Panel_Id: '<string>',
Hashed_Email: '<string>',
User_Agent: '<string>'
})
};
fetch('https://prod.resdefio.com/activation', 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://prod.resdefio.com/activation",
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([
'Type' => '1',
'Route' => 'search',
'Survey_Number' => '1111,2222,3333,4444',
'Session_Id' => '<string>',
'IP_Address' => '<string>',
'Cookie' => '<string>',
'Panel_Id' => '<string>',
'Hashed_Email' => '<string>',
'User_Agent' => '<string>'
]),
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://prod.resdefio.com/activation"
payload := strings.NewReader("{\n \"Type\": \"1\",\n \"Route\": \"search\",\n \"Survey_Number\": \"1111,2222,3333,4444\",\n \"Session_Id\": \"<string>\",\n \"IP_Address\": \"<string>\",\n \"Cookie\": \"<string>\",\n \"Panel_Id\": \"<string>\",\n \"Hashed_Email\": \"<string>\",\n \"User_Agent\": \"<string>\"\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://prod.resdefio.com/activation")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"Type\": \"1\",\n \"Route\": \"search\",\n \"Survey_Number\": \"1111,2222,3333,4444\",\n \"Session_Id\": \"<string>\",\n \"IP_Address\": \"<string>\",\n \"Cookie\": \"<string>\",\n \"Panel_Id\": \"<string>\",\n \"Hashed_Email\": \"<string>\",\n \"User_Agent\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.resdefio.com/activation")
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 \"Type\": \"1\",\n \"Route\": \"search\",\n \"Survey_Number\": \"1111,2222,3333,4444\",\n \"Session_Id\": \"<string>\",\n \"IP_Address\": \"<string>\",\n \"Cookie\": \"<string>\",\n \"Panel_Id\": \"<string>\",\n \"Hashed_Email\": \"<string>\",\n \"User_Agent\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"Action": "DeActivated Successfully!",
"Message": "Records Processed:4"
}