Update the marketing home-page global
curl --request PATCH \
--url https://api.amdital.com/api/globals/home-page \
--header 'Content-Type: application/json' \
--header 'x-internal-key: <api-key>' \
--data '
{
"hero": {
"badge": "<string>",
"tagline": "<string>",
"taglineHighlight": "<string>",
"subhead": "<string>",
"ctaPrimary": "<string>",
"ctaSecondary": "<string>"
},
"stats": [
{
"value": "",
"label": "",
"delta": ""
}
],
"modules": [
{
"name": "",
"slug": "",
"description": "",
"icon": "",
"accent": ""
}
],
"pricingTeaser": {
"headline": "<string>",
"subhead": "<string>",
"startingPrice": "<string>",
"ctaLabel": "<string>"
},
"faqs": [
{
"question": "",
"answer": ""
}
]
}
'import requests
url = "https://api.amdital.com/api/globals/home-page"
payload = {
"hero": {
"badge": "<string>",
"tagline": "<string>",
"taglineHighlight": "<string>",
"subhead": "<string>",
"ctaPrimary": "<string>",
"ctaSecondary": "<string>"
},
"stats": [
{
"value": "",
"label": "",
"delta": ""
}
],
"modules": [
{
"name": "",
"slug": "",
"description": "",
"icon": "",
"accent": ""
}
],
"pricingTeaser": {
"headline": "<string>",
"subhead": "<string>",
"startingPrice": "<string>",
"ctaLabel": "<string>"
},
"faqs": [
{
"question": "",
"answer": ""
}
]
}
headers = {
"x-internal-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-internal-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hero: {
badge: '<string>',
tagline: '<string>',
taglineHighlight: '<string>',
subhead: '<string>',
ctaPrimary: '<string>',
ctaSecondary: '<string>'
},
stats: [{value: '', label: '', delta: ''}],
modules: [{name: '', slug: '', description: '', icon: '', accent: ''}],
pricingTeaser: {
headline: '<string>',
subhead: '<string>',
startingPrice: '<string>',
ctaLabel: '<string>'
},
faqs: [{question: '', answer: ''}]
})
};
fetch('https://api.amdital.com/api/globals/home-page', 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.amdital.com/api/globals/home-page",
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([
'hero' => [
'badge' => '<string>',
'tagline' => '<string>',
'taglineHighlight' => '<string>',
'subhead' => '<string>',
'ctaPrimary' => '<string>',
'ctaSecondary' => '<string>'
],
'stats' => [
[
'value' => '',
'label' => '',
'delta' => ''
]
],
'modules' => [
[
'name' => '',
'slug' => '',
'description' => '',
'icon' => '',
'accent' => ''
]
],
'pricingTeaser' => [
'headline' => '<string>',
'subhead' => '<string>',
'startingPrice' => '<string>',
'ctaLabel' => '<string>'
],
'faqs' => [
[
'question' => '',
'answer' => ''
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-internal-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.amdital.com/api/globals/home-page"
payload := strings.NewReader("{\n \"hero\": {\n \"badge\": \"<string>\",\n \"tagline\": \"<string>\",\n \"taglineHighlight\": \"<string>\",\n \"subhead\": \"<string>\",\n \"ctaPrimary\": \"<string>\",\n \"ctaSecondary\": \"<string>\"\n },\n \"stats\": [\n {\n \"value\": \"\",\n \"label\": \"\",\n \"delta\": \"\"\n }\n ],\n \"modules\": [\n {\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\",\n \"icon\": \"\",\n \"accent\": \"\"\n }\n ],\n \"pricingTeaser\": {\n \"headline\": \"<string>\",\n \"subhead\": \"<string>\",\n \"startingPrice\": \"<string>\",\n \"ctaLabel\": \"<string>\"\n },\n \"faqs\": [\n {\n \"question\": \"\",\n \"answer\": \"\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-internal-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.amdital.com/api/globals/home-page")
.header("x-internal-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hero\": {\n \"badge\": \"<string>\",\n \"tagline\": \"<string>\",\n \"taglineHighlight\": \"<string>\",\n \"subhead\": \"<string>\",\n \"ctaPrimary\": \"<string>\",\n \"ctaSecondary\": \"<string>\"\n },\n \"stats\": [\n {\n \"value\": \"\",\n \"label\": \"\",\n \"delta\": \"\"\n }\n ],\n \"modules\": [\n {\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\",\n \"icon\": \"\",\n \"accent\": \"\"\n }\n ],\n \"pricingTeaser\": {\n \"headline\": \"<string>\",\n \"subhead\": \"<string>\",\n \"startingPrice\": \"<string>\",\n \"ctaLabel\": \"<string>\"\n },\n \"faqs\": [\n {\n \"question\": \"\",\n \"answer\": \"\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amdital.com/api/globals/home-page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-internal-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hero\": {\n \"badge\": \"<string>\",\n \"tagline\": \"<string>\",\n \"taglineHighlight\": \"<string>\",\n \"subhead\": \"<string>\",\n \"ctaPrimary\": \"<string>\",\n \"ctaSecondary\": \"<string>\"\n },\n \"stats\": [\n {\n \"value\": \"\",\n \"label\": \"\",\n \"delta\": \"\"\n }\n ],\n \"modules\": [\n {\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\",\n \"icon\": \"\",\n \"accent\": \"\"\n }\n ],\n \"pricingTeaser\": {\n \"headline\": \"<string>\",\n \"subhead\": \"<string>\",\n \"startingPrice\": \"<string>\",\n \"ctaLabel\": \"<string>\"\n },\n \"faqs\": [\n {\n \"question\": \"\",\n \"answer\": \"\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"hero": {
"badge": "<string>",
"tagline": "<string>",
"taglineHighlight": "<string>",
"subhead": "<string>",
"ctaPrimary": "<string>",
"ctaSecondary": "<string>"
},
"stats": [
{
"value": "",
"label": "",
"delta": ""
}
],
"modules": [
{
"name": "",
"slug": "",
"description": "",
"icon": "",
"accent": ""
}
],
"pricingTeaser": {
"headline": "<string>",
"subhead": "<string>",
"startingPrice": "<string>",
"ctaLabel": "<string>"
},
"faqs": [
{
"question": "",
"answer": ""
}
]
}Content Admin
Update the marketing home-page global
Partial update: only fields present in the body are written. 400 on validation failure.
PATCH
/
api
/
globals
/
home-page
Update the marketing home-page global
curl --request PATCH \
--url https://api.amdital.com/api/globals/home-page \
--header 'Content-Type: application/json' \
--header 'x-internal-key: <api-key>' \
--data '
{
"hero": {
"badge": "<string>",
"tagline": "<string>",
"taglineHighlight": "<string>",
"subhead": "<string>",
"ctaPrimary": "<string>",
"ctaSecondary": "<string>"
},
"stats": [
{
"value": "",
"label": "",
"delta": ""
}
],
"modules": [
{
"name": "",
"slug": "",
"description": "",
"icon": "",
"accent": ""
}
],
"pricingTeaser": {
"headline": "<string>",
"subhead": "<string>",
"startingPrice": "<string>",
"ctaLabel": "<string>"
},
"faqs": [
{
"question": "",
"answer": ""
}
]
}
'import requests
url = "https://api.amdital.com/api/globals/home-page"
payload = {
"hero": {
"badge": "<string>",
"tagline": "<string>",
"taglineHighlight": "<string>",
"subhead": "<string>",
"ctaPrimary": "<string>",
"ctaSecondary": "<string>"
},
"stats": [
{
"value": "",
"label": "",
"delta": ""
}
],
"modules": [
{
"name": "",
"slug": "",
"description": "",
"icon": "",
"accent": ""
}
],
"pricingTeaser": {
"headline": "<string>",
"subhead": "<string>",
"startingPrice": "<string>",
"ctaLabel": "<string>"
},
"faqs": [
{
"question": "",
"answer": ""
}
]
}
headers = {
"x-internal-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-internal-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hero: {
badge: '<string>',
tagline: '<string>',
taglineHighlight: '<string>',
subhead: '<string>',
ctaPrimary: '<string>',
ctaSecondary: '<string>'
},
stats: [{value: '', label: '', delta: ''}],
modules: [{name: '', slug: '', description: '', icon: '', accent: ''}],
pricingTeaser: {
headline: '<string>',
subhead: '<string>',
startingPrice: '<string>',
ctaLabel: '<string>'
},
faqs: [{question: '', answer: ''}]
})
};
fetch('https://api.amdital.com/api/globals/home-page', 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.amdital.com/api/globals/home-page",
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([
'hero' => [
'badge' => '<string>',
'tagline' => '<string>',
'taglineHighlight' => '<string>',
'subhead' => '<string>',
'ctaPrimary' => '<string>',
'ctaSecondary' => '<string>'
],
'stats' => [
[
'value' => '',
'label' => '',
'delta' => ''
]
],
'modules' => [
[
'name' => '',
'slug' => '',
'description' => '',
'icon' => '',
'accent' => ''
]
],
'pricingTeaser' => [
'headline' => '<string>',
'subhead' => '<string>',
'startingPrice' => '<string>',
'ctaLabel' => '<string>'
],
'faqs' => [
[
'question' => '',
'answer' => ''
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-internal-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.amdital.com/api/globals/home-page"
payload := strings.NewReader("{\n \"hero\": {\n \"badge\": \"<string>\",\n \"tagline\": \"<string>\",\n \"taglineHighlight\": \"<string>\",\n \"subhead\": \"<string>\",\n \"ctaPrimary\": \"<string>\",\n \"ctaSecondary\": \"<string>\"\n },\n \"stats\": [\n {\n \"value\": \"\",\n \"label\": \"\",\n \"delta\": \"\"\n }\n ],\n \"modules\": [\n {\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\",\n \"icon\": \"\",\n \"accent\": \"\"\n }\n ],\n \"pricingTeaser\": {\n \"headline\": \"<string>\",\n \"subhead\": \"<string>\",\n \"startingPrice\": \"<string>\",\n \"ctaLabel\": \"<string>\"\n },\n \"faqs\": [\n {\n \"question\": \"\",\n \"answer\": \"\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-internal-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.amdital.com/api/globals/home-page")
.header("x-internal-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hero\": {\n \"badge\": \"<string>\",\n \"tagline\": \"<string>\",\n \"taglineHighlight\": \"<string>\",\n \"subhead\": \"<string>\",\n \"ctaPrimary\": \"<string>\",\n \"ctaSecondary\": \"<string>\"\n },\n \"stats\": [\n {\n \"value\": \"\",\n \"label\": \"\",\n \"delta\": \"\"\n }\n ],\n \"modules\": [\n {\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\",\n \"icon\": \"\",\n \"accent\": \"\"\n }\n ],\n \"pricingTeaser\": {\n \"headline\": \"<string>\",\n \"subhead\": \"<string>\",\n \"startingPrice\": \"<string>\",\n \"ctaLabel\": \"<string>\"\n },\n \"faqs\": [\n {\n \"question\": \"\",\n \"answer\": \"\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amdital.com/api/globals/home-page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-internal-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hero\": {\n \"badge\": \"<string>\",\n \"tagline\": \"<string>\",\n \"taglineHighlight\": \"<string>\",\n \"subhead\": \"<string>\",\n \"ctaPrimary\": \"<string>\",\n \"ctaSecondary\": \"<string>\"\n },\n \"stats\": [\n {\n \"value\": \"\",\n \"label\": \"\",\n \"delta\": \"\"\n }\n ],\n \"modules\": [\n {\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\",\n \"icon\": \"\",\n \"accent\": \"\"\n }\n ],\n \"pricingTeaser\": {\n \"headline\": \"<string>\",\n \"subhead\": \"<string>\",\n \"startingPrice\": \"<string>\",\n \"ctaLabel\": \"<string>\"\n },\n \"faqs\": [\n {\n \"question\": \"\",\n \"answer\": \"\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"hero": {
"badge": "<string>",
"tagline": "<string>",
"taglineHighlight": "<string>",
"subhead": "<string>",
"ctaPrimary": "<string>",
"ctaSecondary": "<string>"
},
"stats": [
{
"value": "",
"label": "",
"delta": ""
}
],
"modules": [
{
"name": "",
"slug": "",
"description": "",
"icon": "",
"accent": ""
}
],
"pricingTeaser": {
"headline": "<string>",
"subhead": "<string>",
"startingPrice": "<string>",
"ctaLabel": "<string>"
},
"faqs": [
{
"question": "",
"answer": ""
}
]
}Body
application/json
Was this page helpful?