curl --request POST \
--url https://app.usertick.com/api/public/v1/surveys/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Onboarding"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Onboarding'})
};
fetch('https://app.usertick.com/api/public/v1/surveys/folders', 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/surveys/folders"
payload = { "name": "Onboarding" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create a survey folder
Creates a folder of the survey list. Folders are the organization’s: every member who reaches every survey sees it, and it changes nothing visitors see. Needs the member’s permission to manage surveys. Recorded in the audit log as made through the credential. 201 with the folder.
Scopes: surveys:organize, surveys:read.
curl --request POST \
--url https://app.usertick.com/api/public/v1/surveys/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Onboarding"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Onboarding'})
};
fetch('https://app.usertick.com/api/public/v1/surveys/folders', 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/surveys/folders"
payload = { "name": "Onboarding" }
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
An icon the dashboard offers; folder when a create leaves it out.
message, star, heart, smile, target, zap, rocket, flag, idea, cart, users, globe, mail, link, folder, chat, question, feedback, thumbs, clipboard, poll, megaphone, briefcase, building, package, layers, archive, tag, bookmark, calendar, support, education, filter, eye, pin, clock, inbox, bell, alert, done, search, due, bars, line, pie, activity, trend, presentation, grid, gauge, map, trophy