curl --request POST \
--url https://app.usertick.com/api/public/v1/survey-themes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Spring"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Spring'})
};
fetch('https://app.usertick.com/api/public/v1/survey-themes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/survey-themes"
payload = { "name": "Spring" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create a survey theme
Saves a theme to the organization’s library, from a built-in style or another theme with the keys in set changed. No survey wears it until a draft names it. A style or a theme that isn’t there is 404 PUB-018-004, and the plan’s saved themes used up 403 PLN-001-017. On a plan without them, custom CSS is 403 THM-001-007 and the page’s own pictures (imageUrl, imageUrlDark, coverImageUrl) 403 PUB-018-006, from set or from the base: null in set clears them. Needs the member’s permission to manage surveys. Recorded in the audit log as made through the credential. 201 with the theme and its address in Location.
Scopes: themes:write, surveys:read.
curl --request POST \
--url https://app.usertick.com/api/public/v1/survey-themes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Spring"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Spring'})
};
fetch('https://app.usertick.com/api/public/v1/survey-themes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/survey-themes"
payload = { "name": "Spring" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Headers
Any 1 to 255 printable ASCII characters, without a space at either end. The answer to the first request with a key is kept for 24 hours per credential: the same request again gets it back (Idempotent-Replayed: true), another request with the key is 409 PUB-002-002, and while the first still runs 409 PUB-002-003. A server error is not kept, and a request that never answered frees its key after 2 minutes: a retry with the key then runs again.
255Body
Response
Created.