curl --request POST \
--url https://app.usertick.com/api/public/v1/surveys/{surveyId}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Checkout NPS, spring"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Checkout NPS, spring'})
};
fetch('https://app.usertick.com/api/public/v1/surveys/{surveyId}/duplicate', 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/{surveyId}/duplicate"
payload = { "name": "Checkout NPS, spring" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Duplicate a survey as a draft
Copies a survey in any status into a new draft with the same questions, logic, targeting, languages, theme and texts, named ” copy” unless name is sent (a long name is shortened so the copy fits 255 characters). The source’s link is never copied: a link or email survey’s copy gets its own new link, as a new survey does, and takes no answers while it is a draft. The copy stays in the source’s folder and keeps the AI-origin marks it copies. Nothing goes live: a person publishes the copy in Usertick (editorUrl). It counts as a new survey for the plan’s limits, which refuse it rather than cut it, and for the 200 creates a day per credential that POST /surveys counts (429 PUB-008-008). Answers 201 with the draft and its address in Location. The body is optional.
Scopes: surveys:draft, surveys:read.
curl --request POST \
--url https://app.usertick.com/api/public/v1/surveys/{surveyId}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Checkout NPS, spring"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Checkout NPS, spring'})
};
fetch('https://app.usertick.com/api/public/v1/surveys/{surveyId}/duplicate', 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/{surveyId}/duplicate"
payload = { "name": "Checkout NPS, 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.