Update Product
curl --request PUT \
--url https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product \
--header 'Content-Type: application/json' \
--header 'X-apikey: <api-key>' \
--data '
{
"Id": 1234567891234567,
"Name": "",
"ExternalId": "",
"Description": "",
"PlatformId": 1234567891234567,
"ChannelId": 1234567891234567,
"SourceMarket": 1234567891234567,
"FormatAdSpec": "",
"AdCreativeDeadline": 0,
"CostBasis": "",
"RateCard": 0.1,
"PartnerRate": 0.1,
"MinimumPartnerBudget": 0.1,
"FulfillmentCost": 0.1,
"NumberOfPlacementsPerCostBasis": 0,
"MaximumEvidenceImages": 0,
"EnableInventoryManagement": false,
"InventoryBasis": "",
"NumberOfPlacementsPerInventoryBasis": 0,
"TextCustomReportingFields": "",
"IntegerCustomReportingFields": "",
"DecimalCustomReportingFields": "",
"RemovedCustomReportingFields": ""
}
'import requests
url = "https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product"
payload = {
"Id": 1234567891234567,
"Name": "",
"ExternalId": "",
"Description": "",
"PlatformId": 1234567891234567,
"ChannelId": 1234567891234567,
"SourceMarket": 1234567891234567,
"FormatAdSpec": "",
"AdCreativeDeadline": 0,
"CostBasis": "",
"RateCard": 0.1,
"PartnerRate": 0.1,
"MinimumPartnerBudget": 0.1,
"FulfillmentCost": 0.1,
"NumberOfPlacementsPerCostBasis": 0,
"MaximumEvidenceImages": 0,
"EnableInventoryManagement": False,
"InventoryBasis": "",
"NumberOfPlacementsPerInventoryBasis": 0,
"TextCustomReportingFields": "",
"IntegerCustomReportingFields": "",
"DecimalCustomReportingFields": "",
"RemovedCustomReportingFields": ""
}
headers = {
"X-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-apikey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
Id: 1234567891234567,
Name: '',
ExternalId: '',
Description: '',
PlatformId: 1234567891234567,
ChannelId: 1234567891234567,
SourceMarket: 1234567891234567,
FormatAdSpec: '',
AdCreativeDeadline: 0,
CostBasis: '',
RateCard: 0.1,
PartnerRate: 0.1,
MinimumPartnerBudget: 0.1,
FulfillmentCost: 0.1,
NumberOfPlacementsPerCostBasis: 0,
MaximumEvidenceImages: 0,
EnableInventoryManagement: false,
InventoryBasis: '',
NumberOfPlacementsPerInventoryBasis: 0,
TextCustomReportingFields: '',
IntegerCustomReportingFields: '',
DecimalCustomReportingFields: '',
RemovedCustomReportingFields: ''
})
};
fetch('https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product', 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://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'Id' => 1234567891234567,
'Name' => '',
'ExternalId' => '',
'Description' => '',
'PlatformId' => 1234567891234567,
'ChannelId' => 1234567891234567,
'SourceMarket' => 1234567891234567,
'FormatAdSpec' => '',
'AdCreativeDeadline' => 0,
'CostBasis' => '',
'RateCard' => 0.1,
'PartnerRate' => 0.1,
'MinimumPartnerBudget' => 0.1,
'FulfillmentCost' => 0.1,
'NumberOfPlacementsPerCostBasis' => 0,
'MaximumEvidenceImages' => 0,
'EnableInventoryManagement' => false,
'InventoryBasis' => '',
'NumberOfPlacementsPerInventoryBasis' => 0,
'TextCustomReportingFields' => '',
'IntegerCustomReportingFields' => '',
'DecimalCustomReportingFields' => '',
'RemovedCustomReportingFields' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-apikey: <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://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product"
payload := strings.NewReader("{\n \"Id\": 1234567891234567,\n \"Name\": \"\",\n \"ExternalId\": \"\",\n \"Description\": \"\",\n \"PlatformId\": 1234567891234567,\n \"ChannelId\": 1234567891234567,\n \"SourceMarket\": 1234567891234567,\n \"FormatAdSpec\": \"\",\n \"AdCreativeDeadline\": 0,\n \"CostBasis\": \"\",\n \"RateCard\": 0.1,\n \"PartnerRate\": 0.1,\n \"MinimumPartnerBudget\": 0.1,\n \"FulfillmentCost\": 0.1,\n \"NumberOfPlacementsPerCostBasis\": 0,\n \"MaximumEvidenceImages\": 0,\n \"EnableInventoryManagement\": false,\n \"InventoryBasis\": \"\",\n \"NumberOfPlacementsPerInventoryBasis\": 0,\n \"TextCustomReportingFields\": \"\",\n \"IntegerCustomReportingFields\": \"\",\n \"DecimalCustomReportingFields\": \"\",\n \"RemovedCustomReportingFields\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-apikey", "<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.put("https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product")
.header("X-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"Id\": 1234567891234567,\n \"Name\": \"\",\n \"ExternalId\": \"\",\n \"Description\": \"\",\n \"PlatformId\": 1234567891234567,\n \"ChannelId\": 1234567891234567,\n \"SourceMarket\": 1234567891234567,\n \"FormatAdSpec\": \"\",\n \"AdCreativeDeadline\": 0,\n \"CostBasis\": \"\",\n \"RateCard\": 0.1,\n \"PartnerRate\": 0.1,\n \"MinimumPartnerBudget\": 0.1,\n \"FulfillmentCost\": 0.1,\n \"NumberOfPlacementsPerCostBasis\": 0,\n \"MaximumEvidenceImages\": 0,\n \"EnableInventoryManagement\": false,\n \"InventoryBasis\": \"\",\n \"NumberOfPlacementsPerInventoryBasis\": 0,\n \"TextCustomReportingFields\": \"\",\n \"IntegerCustomReportingFields\": \"\",\n \"DecimalCustomReportingFields\": \"\",\n \"RemovedCustomReportingFields\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Id\": 1234567891234567,\n \"Name\": \"\",\n \"ExternalId\": \"\",\n \"Description\": \"\",\n \"PlatformId\": 1234567891234567,\n \"ChannelId\": 1234567891234567,\n \"SourceMarket\": 1234567891234567,\n \"FormatAdSpec\": \"\",\n \"AdCreativeDeadline\": 0,\n \"CostBasis\": \"\",\n \"RateCard\": 0.1,\n \"PartnerRate\": 0.1,\n \"MinimumPartnerBudget\": 0.1,\n \"FulfillmentCost\": 0.1,\n \"NumberOfPlacementsPerCostBasis\": 0,\n \"MaximumEvidenceImages\": 0,\n \"EnableInventoryManagement\": false,\n \"InventoryBasis\": \"\",\n \"NumberOfPlacementsPerInventoryBasis\": 0,\n \"TextCustomReportingFields\": \"\",\n \"IntegerCustomReportingFields\": \"\",\n \"DecimalCustomReportingFields\": \"\",\n \"RemovedCustomReportingFields\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"Success": false,
"Message": "",
"Id": 1234567891234567,
"ExternalId": ""
}Products
Update Product
PUT
/
Product
Update Product
curl --request PUT \
--url https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product \
--header 'Content-Type: application/json' \
--header 'X-apikey: <api-key>' \
--data '
{
"Id": 1234567891234567,
"Name": "",
"ExternalId": "",
"Description": "",
"PlatformId": 1234567891234567,
"ChannelId": 1234567891234567,
"SourceMarket": 1234567891234567,
"FormatAdSpec": "",
"AdCreativeDeadline": 0,
"CostBasis": "",
"RateCard": 0.1,
"PartnerRate": 0.1,
"MinimumPartnerBudget": 0.1,
"FulfillmentCost": 0.1,
"NumberOfPlacementsPerCostBasis": 0,
"MaximumEvidenceImages": 0,
"EnableInventoryManagement": false,
"InventoryBasis": "",
"NumberOfPlacementsPerInventoryBasis": 0,
"TextCustomReportingFields": "",
"IntegerCustomReportingFields": "",
"DecimalCustomReportingFields": "",
"RemovedCustomReportingFields": ""
}
'import requests
url = "https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product"
payload = {
"Id": 1234567891234567,
"Name": "",
"ExternalId": "",
"Description": "",
"PlatformId": 1234567891234567,
"ChannelId": 1234567891234567,
"SourceMarket": 1234567891234567,
"FormatAdSpec": "",
"AdCreativeDeadline": 0,
"CostBasis": "",
"RateCard": 0.1,
"PartnerRate": 0.1,
"MinimumPartnerBudget": 0.1,
"FulfillmentCost": 0.1,
"NumberOfPlacementsPerCostBasis": 0,
"MaximumEvidenceImages": 0,
"EnableInventoryManagement": False,
"InventoryBasis": "",
"NumberOfPlacementsPerInventoryBasis": 0,
"TextCustomReportingFields": "",
"IntegerCustomReportingFields": "",
"DecimalCustomReportingFields": "",
"RemovedCustomReportingFields": ""
}
headers = {
"X-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-apikey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
Id: 1234567891234567,
Name: '',
ExternalId: '',
Description: '',
PlatformId: 1234567891234567,
ChannelId: 1234567891234567,
SourceMarket: 1234567891234567,
FormatAdSpec: '',
AdCreativeDeadline: 0,
CostBasis: '',
RateCard: 0.1,
PartnerRate: 0.1,
MinimumPartnerBudget: 0.1,
FulfillmentCost: 0.1,
NumberOfPlacementsPerCostBasis: 0,
MaximumEvidenceImages: 0,
EnableInventoryManagement: false,
InventoryBasis: '',
NumberOfPlacementsPerInventoryBasis: 0,
TextCustomReportingFields: '',
IntegerCustomReportingFields: '',
DecimalCustomReportingFields: '',
RemovedCustomReportingFields: ''
})
};
fetch('https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product', 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://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'Id' => 1234567891234567,
'Name' => '',
'ExternalId' => '',
'Description' => '',
'PlatformId' => 1234567891234567,
'ChannelId' => 1234567891234567,
'SourceMarket' => 1234567891234567,
'FormatAdSpec' => '',
'AdCreativeDeadline' => 0,
'CostBasis' => '',
'RateCard' => 0.1,
'PartnerRate' => 0.1,
'MinimumPartnerBudget' => 0.1,
'FulfillmentCost' => 0.1,
'NumberOfPlacementsPerCostBasis' => 0,
'MaximumEvidenceImages' => 0,
'EnableInventoryManagement' => false,
'InventoryBasis' => '',
'NumberOfPlacementsPerInventoryBasis' => 0,
'TextCustomReportingFields' => '',
'IntegerCustomReportingFields' => '',
'DecimalCustomReportingFields' => '',
'RemovedCustomReportingFields' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-apikey: <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://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product"
payload := strings.NewReader("{\n \"Id\": 1234567891234567,\n \"Name\": \"\",\n \"ExternalId\": \"\",\n \"Description\": \"\",\n \"PlatformId\": 1234567891234567,\n \"ChannelId\": 1234567891234567,\n \"SourceMarket\": 1234567891234567,\n \"FormatAdSpec\": \"\",\n \"AdCreativeDeadline\": 0,\n \"CostBasis\": \"\",\n \"RateCard\": 0.1,\n \"PartnerRate\": 0.1,\n \"MinimumPartnerBudget\": 0.1,\n \"FulfillmentCost\": 0.1,\n \"NumberOfPlacementsPerCostBasis\": 0,\n \"MaximumEvidenceImages\": 0,\n \"EnableInventoryManagement\": false,\n \"InventoryBasis\": \"\",\n \"NumberOfPlacementsPerInventoryBasis\": 0,\n \"TextCustomReportingFields\": \"\",\n \"IntegerCustomReportingFields\": \"\",\n \"DecimalCustomReportingFields\": \"\",\n \"RemovedCustomReportingFields\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-apikey", "<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.put("https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product")
.header("X-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"Id\": 1234567891234567,\n \"Name\": \"\",\n \"ExternalId\": \"\",\n \"Description\": \"\",\n \"PlatformId\": 1234567891234567,\n \"ChannelId\": 1234567891234567,\n \"SourceMarket\": 1234567891234567,\n \"FormatAdSpec\": \"\",\n \"AdCreativeDeadline\": 0,\n \"CostBasis\": \"\",\n \"RateCard\": 0.1,\n \"PartnerRate\": 0.1,\n \"MinimumPartnerBudget\": 0.1,\n \"FulfillmentCost\": 0.1,\n \"NumberOfPlacementsPerCostBasis\": 0,\n \"MaximumEvidenceImages\": 0,\n \"EnableInventoryManagement\": false,\n \"InventoryBasis\": \"\",\n \"NumberOfPlacementsPerInventoryBasis\": 0,\n \"TextCustomReportingFields\": \"\",\n \"IntegerCustomReportingFields\": \"\",\n \"DecimalCustomReportingFields\": \"\",\n \"RemovedCustomReportingFields\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.uplifthub.io/P195_Exposed_Integrations/rest/V1/Product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Id\": 1234567891234567,\n \"Name\": \"\",\n \"ExternalId\": \"\",\n \"Description\": \"\",\n \"PlatformId\": 1234567891234567,\n \"ChannelId\": 1234567891234567,\n \"SourceMarket\": 1234567891234567,\n \"FormatAdSpec\": \"\",\n \"AdCreativeDeadline\": 0,\n \"CostBasis\": \"\",\n \"RateCard\": 0.1,\n \"PartnerRate\": 0.1,\n \"MinimumPartnerBudget\": 0.1,\n \"FulfillmentCost\": 0.1,\n \"NumberOfPlacementsPerCostBasis\": 0,\n \"MaximumEvidenceImages\": 0,\n \"EnableInventoryManagement\": false,\n \"InventoryBasis\": \"\",\n \"NumberOfPlacementsPerInventoryBasis\": 0,\n \"TextCustomReportingFields\": \"\",\n \"IntegerCustomReportingFields\": \"\",\n \"DecimalCustomReportingFields\": \"\",\n \"RemovedCustomReportingFields\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"Success": false,
"Message": "",
"Id": 1234567891234567,
"ExternalId": ""
}Authorizations
Body
application/json
Example:
1234567891234567
Example:
1234567891234567
Example:
1234567891234567
Example:
1234567891234567
Example:
0
Example:
0.1
Example:
0.1
Example:
0.1
Example:
0.1
Example:
0
Example:
0
Example:
false
Example:
0
Was this page helpful?