Update a surve's name, status or expiration date
update_survey(survey_id, status, new_name = NULL, expiration_dates = NULL)
survey_id | the survey id |
---|---|
status | is the activity status of the survey (true or false) |
new_name | is the edited name of the survey |
expiration_dates | an array with startDate and endDate (format "2016-01-01T01:00:00Z") |
A execution status code
if (FALSE) update_survey("SV_012345678901234", TRUE) if (FALSE) update_survey("SV_012345678901234", TRUE, "new_name", c("2016-01-01T01:00:00Z","2016-03-01T01:00:00Z"))