Surveys
Delete a survey
DELETE
/surveys/{id}Needscontent.deleteDeletes the survey with its versions and translations, and stops serving it everywhere. This can't be undone.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Path Parameters
id*integerThe survey's id.
Range
1 <= valueResponse Body
Deleted
application/json- response
success*unknownShell
curl -X DELETE 'https://app.cueston.com/api/surveys/1'Example Response
JSON
{
"success": true
}Update a surveyPATCH
Saves changes to the working draft. Fields you leave out keep their value; `null` clears a nullable field. If it's live, visitors keep seeing the published version until you publish again. `PUT` is accepted as an alias.
Duplicate a surveyPOST
Copies the survey as a new draft named "Copy of …" and translations.