Update Theme
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme \
--header 'Content-Type: application/json' \
--data '
{
"version": 4503599627370496,
"settings": {
"logos": {
"primaryAssetId": "<string>",
"secondaryAssetId": "<string>",
"footerAssetId": "<string>"
},
"colors": {
"primary": "<string>",
"secondary": "<string>",
"background": "#FFFFFF"
},
"typography": {
"titleScale": 1.15,
"bodyScale": 1.025,
"headingBold": true,
"headingItalic": true
},
"images": {},
"header": {
"show": true,
"showLogo": true,
"showProjectName": true,
"text": "",
"logoAlign": "center",
"logoSlot": "primary"
},
"footer": {
"show": true,
"showLogo": true,
"logoPosition": "center",
"text": "<string>",
"disclaimerLine": "<string>",
"showPageNumbers": true,
"numberFormat": "<string>",
"excludeCover": true,
"showDate": true
},
"watermark": {
"enabled": true,
"text": "<string>"
},
"disclaimer": "<string>",
"disclaimerPage": {
"enabled": true,
"text": "<string>"
}
},
"workspaceLogoAssetId": "<string>"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme"
payload = {
"version": 4503599627370496,
"settings": {
"logos": {
"primaryAssetId": "<string>",
"secondaryAssetId": "<string>",
"footerAssetId": "<string>"
},
"colors": {
"primary": "<string>",
"secondary": "<string>",
"background": "#FFFFFF"
},
"typography": {
"titleScale": 1.15,
"bodyScale": 1.025,
"headingBold": True,
"headingItalic": True
},
"images": {},
"header": {
"show": True,
"showLogo": True,
"showProjectName": True,
"text": "",
"logoAlign": "center",
"logoSlot": "primary"
},
"footer": {
"show": True,
"showLogo": True,
"logoPosition": "center",
"text": "<string>",
"disclaimerLine": "<string>",
"showPageNumbers": True,
"numberFormat": "<string>",
"excludeCover": True,
"showDate": True
},
"watermark": {
"enabled": True,
"text": "<string>"
},
"disclaimer": "<string>",
"disclaimerPage": {
"enabled": True,
"text": "<string>"
}
},
"workspaceLogoAssetId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: 4503599627370496,
settings: {
logos: {
primaryAssetId: '<string>',
secondaryAssetId: '<string>',
footerAssetId: '<string>'
},
colors: {primary: '<string>', secondary: '<string>', background: '#FFFFFF'},
typography: {titleScale: 1.15, bodyScale: 1.025, headingBold: true, headingItalic: true},
images: {},
header: {
show: true,
showLogo: true,
showProjectName: true,
text: '',
logoAlign: 'center',
logoSlot: 'primary'
},
footer: {
show: true,
showLogo: true,
logoPosition: 'center',
text: '<string>',
disclaimerLine: '<string>',
showPageNumbers: true,
numberFormat: '<string>',
excludeCover: true,
showDate: true
},
watermark: {enabled: true, text: '<string>'},
disclaimer: '<string>',
disclaimerPage: {enabled: true, text: '<string>'}
},
workspaceLogoAssetId: '<string>'
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme', 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.specurate.com/api/v1/workspaces/{workspaceId}/report-theme",
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([
'version' => 4503599627370496,
'settings' => [
'logos' => [
'primaryAssetId' => '<string>',
'secondaryAssetId' => '<string>',
'footerAssetId' => '<string>'
],
'colors' => [
'primary' => '<string>',
'secondary' => '<string>',
'background' => '#FFFFFF'
],
'typography' => [
'titleScale' => 1.15,
'bodyScale' => 1.025,
'headingBold' => true,
'headingItalic' => true
],
'images' => [
],
'header' => [
'show' => true,
'showLogo' => true,
'showProjectName' => true,
'text' => '',
'logoAlign' => 'center',
'logoSlot' => 'primary'
],
'footer' => [
'show' => true,
'showLogo' => true,
'logoPosition' => 'center',
'text' => '<string>',
'disclaimerLine' => '<string>',
'showPageNumbers' => true,
'numberFormat' => '<string>',
'excludeCover' => true,
'showDate' => true
],
'watermark' => [
'enabled' => true,
'text' => '<string>'
],
'disclaimer' => '<string>',
'disclaimerPage' => [
'enabled' => true,
'text' => '<string>'
]
],
'workspaceLogoAssetId' => '<string>'
]),
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://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme"
payload := strings.NewReader("{\n \"version\": 4503599627370496,\n \"settings\": {\n \"logos\": {\n \"primaryAssetId\": \"<string>\",\n \"secondaryAssetId\": \"<string>\",\n \"footerAssetId\": \"<string>\"\n },\n \"colors\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"background\": \"#FFFFFF\"\n },\n \"typography\": {\n \"titleScale\": 1.15,\n \"bodyScale\": 1.025,\n \"headingBold\": true,\n \"headingItalic\": true\n },\n \"images\": {},\n \"header\": {\n \"show\": true,\n \"showLogo\": true,\n \"showProjectName\": true,\n \"text\": \"\",\n \"logoAlign\": \"center\",\n \"logoSlot\": \"primary\"\n },\n \"footer\": {\n \"show\": true,\n \"showLogo\": true,\n \"logoPosition\": \"center\",\n \"text\": \"<string>\",\n \"disclaimerLine\": \"<string>\",\n \"showPageNumbers\": true,\n \"numberFormat\": \"<string>\",\n \"excludeCover\": true,\n \"showDate\": true\n },\n \"watermark\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n },\n \"disclaimer\": \"<string>\",\n \"disclaimerPage\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n }\n },\n \"workspaceLogoAssetId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme")
.header("Content-Type", "application/json")
.body("{\n \"version\": 4503599627370496,\n \"settings\": {\n \"logos\": {\n \"primaryAssetId\": \"<string>\",\n \"secondaryAssetId\": \"<string>\",\n \"footerAssetId\": \"<string>\"\n },\n \"colors\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"background\": \"#FFFFFF\"\n },\n \"typography\": {\n \"titleScale\": 1.15,\n \"bodyScale\": 1.025,\n \"headingBold\": true,\n \"headingItalic\": true\n },\n \"images\": {},\n \"header\": {\n \"show\": true,\n \"showLogo\": true,\n \"showProjectName\": true,\n \"text\": \"\",\n \"logoAlign\": \"center\",\n \"logoSlot\": \"primary\"\n },\n \"footer\": {\n \"show\": true,\n \"showLogo\": true,\n \"logoPosition\": \"center\",\n \"text\": \"<string>\",\n \"disclaimerLine\": \"<string>\",\n \"showPageNumbers\": true,\n \"numberFormat\": \"<string>\",\n \"excludeCover\": true,\n \"showDate\": true\n },\n \"watermark\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n },\n \"disclaimer\": \"<string>\",\n \"disclaimerPage\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n }\n },\n \"workspaceLogoAssetId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": 4503599627370496,\n \"settings\": {\n \"logos\": {\n \"primaryAssetId\": \"<string>\",\n \"secondaryAssetId\": \"<string>\",\n \"footerAssetId\": \"<string>\"\n },\n \"colors\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"background\": \"#FFFFFF\"\n },\n \"typography\": {\n \"titleScale\": 1.15,\n \"bodyScale\": 1.025,\n \"headingBold\": true,\n \"headingItalic\": true\n },\n \"images\": {},\n \"header\": {\n \"show\": true,\n \"showLogo\": true,\n \"showProjectName\": true,\n \"text\": \"\",\n \"logoAlign\": \"center\",\n \"logoSlot\": \"primary\"\n },\n \"footer\": {\n \"show\": true,\n \"showLogo\": true,\n \"logoPosition\": \"center\",\n \"text\": \"<string>\",\n \"disclaimerLine\": \"<string>\",\n \"showPageNumbers\": true,\n \"numberFormat\": \"<string>\",\n \"excludeCover\": true,\n \"showDate\": true\n },\n \"watermark\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n },\n \"disclaimer\": \"<string>\",\n \"disclaimerPage\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n }\n },\n \"workspaceLogoAssetId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}Report Themes
Update Theme
PATCH
/
v1
/
workspaces
/
{workspaceId}
/
report-theme
Update Theme
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme \
--header 'Content-Type: application/json' \
--data '
{
"version": 4503599627370496,
"settings": {
"logos": {
"primaryAssetId": "<string>",
"secondaryAssetId": "<string>",
"footerAssetId": "<string>"
},
"colors": {
"primary": "<string>",
"secondary": "<string>",
"background": "#FFFFFF"
},
"typography": {
"titleScale": 1.15,
"bodyScale": 1.025,
"headingBold": true,
"headingItalic": true
},
"images": {},
"header": {
"show": true,
"showLogo": true,
"showProjectName": true,
"text": "",
"logoAlign": "center",
"logoSlot": "primary"
},
"footer": {
"show": true,
"showLogo": true,
"logoPosition": "center",
"text": "<string>",
"disclaimerLine": "<string>",
"showPageNumbers": true,
"numberFormat": "<string>",
"excludeCover": true,
"showDate": true
},
"watermark": {
"enabled": true,
"text": "<string>"
},
"disclaimer": "<string>",
"disclaimerPage": {
"enabled": true,
"text": "<string>"
}
},
"workspaceLogoAssetId": "<string>"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme"
payload = {
"version": 4503599627370496,
"settings": {
"logos": {
"primaryAssetId": "<string>",
"secondaryAssetId": "<string>",
"footerAssetId": "<string>"
},
"colors": {
"primary": "<string>",
"secondary": "<string>",
"background": "#FFFFFF"
},
"typography": {
"titleScale": 1.15,
"bodyScale": 1.025,
"headingBold": True,
"headingItalic": True
},
"images": {},
"header": {
"show": True,
"showLogo": True,
"showProjectName": True,
"text": "",
"logoAlign": "center",
"logoSlot": "primary"
},
"footer": {
"show": True,
"showLogo": True,
"logoPosition": "center",
"text": "<string>",
"disclaimerLine": "<string>",
"showPageNumbers": True,
"numberFormat": "<string>",
"excludeCover": True,
"showDate": True
},
"watermark": {
"enabled": True,
"text": "<string>"
},
"disclaimer": "<string>",
"disclaimerPage": {
"enabled": True,
"text": "<string>"
}
},
"workspaceLogoAssetId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: 4503599627370496,
settings: {
logos: {
primaryAssetId: '<string>',
secondaryAssetId: '<string>',
footerAssetId: '<string>'
},
colors: {primary: '<string>', secondary: '<string>', background: '#FFFFFF'},
typography: {titleScale: 1.15, bodyScale: 1.025, headingBold: true, headingItalic: true},
images: {},
header: {
show: true,
showLogo: true,
showProjectName: true,
text: '',
logoAlign: 'center',
logoSlot: 'primary'
},
footer: {
show: true,
showLogo: true,
logoPosition: 'center',
text: '<string>',
disclaimerLine: '<string>',
showPageNumbers: true,
numberFormat: '<string>',
excludeCover: true,
showDate: true
},
watermark: {enabled: true, text: '<string>'},
disclaimer: '<string>',
disclaimerPage: {enabled: true, text: '<string>'}
},
workspaceLogoAssetId: '<string>'
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme', 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.specurate.com/api/v1/workspaces/{workspaceId}/report-theme",
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([
'version' => 4503599627370496,
'settings' => [
'logos' => [
'primaryAssetId' => '<string>',
'secondaryAssetId' => '<string>',
'footerAssetId' => '<string>'
],
'colors' => [
'primary' => '<string>',
'secondary' => '<string>',
'background' => '#FFFFFF'
],
'typography' => [
'titleScale' => 1.15,
'bodyScale' => 1.025,
'headingBold' => true,
'headingItalic' => true
],
'images' => [
],
'header' => [
'show' => true,
'showLogo' => true,
'showProjectName' => true,
'text' => '',
'logoAlign' => 'center',
'logoSlot' => 'primary'
],
'footer' => [
'show' => true,
'showLogo' => true,
'logoPosition' => 'center',
'text' => '<string>',
'disclaimerLine' => '<string>',
'showPageNumbers' => true,
'numberFormat' => '<string>',
'excludeCover' => true,
'showDate' => true
],
'watermark' => [
'enabled' => true,
'text' => '<string>'
],
'disclaimer' => '<string>',
'disclaimerPage' => [
'enabled' => true,
'text' => '<string>'
]
],
'workspaceLogoAssetId' => '<string>'
]),
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://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme"
payload := strings.NewReader("{\n \"version\": 4503599627370496,\n \"settings\": {\n \"logos\": {\n \"primaryAssetId\": \"<string>\",\n \"secondaryAssetId\": \"<string>\",\n \"footerAssetId\": \"<string>\"\n },\n \"colors\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"background\": \"#FFFFFF\"\n },\n \"typography\": {\n \"titleScale\": 1.15,\n \"bodyScale\": 1.025,\n \"headingBold\": true,\n \"headingItalic\": true\n },\n \"images\": {},\n \"header\": {\n \"show\": true,\n \"showLogo\": true,\n \"showProjectName\": true,\n \"text\": \"\",\n \"logoAlign\": \"center\",\n \"logoSlot\": \"primary\"\n },\n \"footer\": {\n \"show\": true,\n \"showLogo\": true,\n \"logoPosition\": \"center\",\n \"text\": \"<string>\",\n \"disclaimerLine\": \"<string>\",\n \"showPageNumbers\": true,\n \"numberFormat\": \"<string>\",\n \"excludeCover\": true,\n \"showDate\": true\n },\n \"watermark\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n },\n \"disclaimer\": \"<string>\",\n \"disclaimerPage\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n }\n },\n \"workspaceLogoAssetId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme")
.header("Content-Type", "application/json")
.body("{\n \"version\": 4503599627370496,\n \"settings\": {\n \"logos\": {\n \"primaryAssetId\": \"<string>\",\n \"secondaryAssetId\": \"<string>\",\n \"footerAssetId\": \"<string>\"\n },\n \"colors\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"background\": \"#FFFFFF\"\n },\n \"typography\": {\n \"titleScale\": 1.15,\n \"bodyScale\": 1.025,\n \"headingBold\": true,\n \"headingItalic\": true\n },\n \"images\": {},\n \"header\": {\n \"show\": true,\n \"showLogo\": true,\n \"showProjectName\": true,\n \"text\": \"\",\n \"logoAlign\": \"center\",\n \"logoSlot\": \"primary\"\n },\n \"footer\": {\n \"show\": true,\n \"showLogo\": true,\n \"logoPosition\": \"center\",\n \"text\": \"<string>\",\n \"disclaimerLine\": \"<string>\",\n \"showPageNumbers\": true,\n \"numberFormat\": \"<string>\",\n \"excludeCover\": true,\n \"showDate\": true\n },\n \"watermark\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n },\n \"disclaimer\": \"<string>\",\n \"disclaimerPage\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n }\n },\n \"workspaceLogoAssetId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/report-theme")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": 4503599627370496,\n \"settings\": {\n \"logos\": {\n \"primaryAssetId\": \"<string>\",\n \"secondaryAssetId\": \"<string>\",\n \"footerAssetId\": \"<string>\"\n },\n \"colors\": {\n \"primary\": \"<string>\",\n \"secondary\": \"<string>\",\n \"background\": \"#FFFFFF\"\n },\n \"typography\": {\n \"titleScale\": 1.15,\n \"bodyScale\": 1.025,\n \"headingBold\": true,\n \"headingItalic\": true\n },\n \"images\": {},\n \"header\": {\n \"show\": true,\n \"showLogo\": true,\n \"showProjectName\": true,\n \"text\": \"\",\n \"logoAlign\": \"center\",\n \"logoSlot\": \"primary\"\n },\n \"footer\": {\n \"show\": true,\n \"showLogo\": true,\n \"logoPosition\": \"center\",\n \"text\": \"<string>\",\n \"disclaimerLine\": \"<string>\",\n \"showPageNumbers\": true,\n \"numberFormat\": \"<string>\",\n \"excludeCover\": true,\n \"showDate\": true\n },\n \"watermark\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n },\n \"disclaimer\": \"<string>\",\n \"disclaimerPage\": {\n \"enabled\": true,\n \"text\": \"<string>\"\n }\n },\n \"workspaceLogoAssetId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}⌘I