Landing Pages
Post apiv2organizations landing pages change reports
POST
/
api
/
v2
/
organizations
/
{orgId}
/
landing-pages
/
{pageId}
/
change-reports
cURL
curl --request POST \
--url https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-12-25",
"to": "2023-12-25",
"type": "visual",
"force": false
}
'import requests
url = "https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports"
payload = {
"from": "2023-12-25",
"to": "2023-12-25",
"type": "visual",
"force": False
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({from: '2023-12-25', to: '2023-12-25', type: 'visual', force: false})
};
fetch('https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports', 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.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports",
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([
'from' => '2023-12-25',
'to' => '2023-12-25',
'type' => 'visual',
'force' => false
]),
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://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports"
payload := strings.NewReader("{\n \"from\": \"2023-12-25\",\n \"to\": \"2023-12-25\",\n \"type\": \"visual\",\n \"force\": false\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"2023-12-25\",\n \"to\": \"2023-12-25\",\n \"type\": \"visual\",\n \"force\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"2023-12-25\",\n \"to\": \"2023-12-25\",\n \"type\": \"visual\",\n \"force\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landingPageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rangeFrom": "2023-12-25",
"rangeTo": "2023-12-25",
"baselineVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"type": "visual",
"diffVersion": 123,
"error": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByName": "<string>",
"createdAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>",
"downloads": {
"html": "<string>",
"pdf": "<string>"
}
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landingPageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rangeFrom": "2023-12-25",
"rangeTo": "2023-12-25",
"baselineVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"type": "visual",
"diffVersion": 123,
"error": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByName": "<string>",
"createdAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>",
"downloads": {
"html": "<string>",
"pdf": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Body
application/json
Response
A report for this range and content already exists and is returned instead of a new one
Available options:
queued, running, done, failed Available options:
visual, text Show child attributes
Show child attributes
⌘I
cURL
curl --request POST \
--url https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-12-25",
"to": "2023-12-25",
"type": "visual",
"force": false
}
'import requests
url = "https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports"
payload = {
"from": "2023-12-25",
"to": "2023-12-25",
"type": "visual",
"force": False
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({from: '2023-12-25', to: '2023-12-25', type: 'visual', force: false})
};
fetch('https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports', 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.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports",
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([
'from' => '2023-12-25',
'to' => '2023-12-25',
'type' => 'visual',
'force' => false
]),
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://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports"
payload := strings.NewReader("{\n \"from\": \"2023-12-25\",\n \"to\": \"2023-12-25\",\n \"type\": \"visual\",\n \"force\": false\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"2023-12-25\",\n \"to\": \"2023-12-25\",\n \"type\": \"visual\",\n \"force\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/organizations/{orgId}/landing-pages/{pageId}/change-reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"2023-12-25\",\n \"to\": \"2023-12-25\",\n \"type\": \"visual\",\n \"force\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landingPageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rangeFrom": "2023-12-25",
"rangeTo": "2023-12-25",
"baselineVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"type": "visual",
"diffVersion": 123,
"error": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByName": "<string>",
"createdAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>",
"downloads": {
"html": "<string>",
"pdf": "<string>"
}
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landingPageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rangeFrom": "2023-12-25",
"rangeTo": "2023-12-25",
"baselineVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"type": "visual",
"diffVersion": 123,
"error": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdByName": "<string>",
"createdAt": "<string>",
"startedAt": "<string>",
"finishedAt": "<string>",
"downloads": {
"html": "<string>",
"pdf": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}