curl --request POST \
--url https://app.usertick.com/api/public/v1/surveys/{surveyId}/copy-link/turn-off \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.usertick.com/api/public/v1/surveys/{surveyId}/copy-link/turn-off', 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}/copy-link/turn-off"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)Turn off a survey's copy link
Turns the survey’s copy link off, as turning off the Link on switch in Usertick does: the address stops opening at once and keeps its token, so a person can turn it on again in Usertick. Turning off a link that is off already changes nothing. A survey with no copy link is 404 SRV-014-005. Recorded in the audit log as made through the credential. There is no call that turns a copy link on.
Scopes: surveys:write.
curl --request POST \
--url https://app.usertick.com/api/public/v1/surveys/{surveyId}/copy-link/turn-off \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.usertick.com/api/public/v1/surveys/{surveyId}/copy-link/turn-off', 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}/copy-link/turn-off"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, 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.
255Response
The copy link, turned off.
A survey's "Share a copy" link. The API reads it and turns it off; it never creates, updates or turns on a copy link.