View source: R/suso_api_Interviews.R
suso_patchApproveInterview | R Documentation |
Allows you to approve interviews in supervisor or headquarters role as well as to provide a comment (i.e. reason) for the approval.
suso_patchApproveInterview(
server = suso_get_api_key("susoServer"),
apiUser = suso_get_api_key("susoUser"),
apiPass = suso_get_api_key("susoPass"),
workspace = NULL,
token = NULL,
intID = "",
HQ = FALSE,
comment = "Well done!"
)
server |
Survey Solutions server address |
apiUser |
Survey Solutions API user |
apiPass |
Survey Solutions API password |
workspace |
server workspace, if nothing provided, defaults to primary |
token |
If Survey Solutions server token is provided apiUser and apiPass will be ignored |
intID |
the InterviewId of the interview. |
HQ |
if FALSE, approve as supervisor, if TRUE rejected as headquarters |
comment |
comment which should be sent with the questionnaire |
For details please see: https://docs.mysurvey.solutions/headquarters/interviews/survey-workflow/
## Not run:
# approve the interview as supervisor
suso_patchApproveInterview(
workspace = "myworkspace",
intID = "dee7705f-d611-4b12-9b97-2b8e5b80c4ea"
)
# approve the interview as headquarters
suso_patchApproveInterview(
workspace = "myworkspace",
intID = "dee7705f-d611-4b12-9b97-2b8e5b80c4ea",
HQ = TRUE
)
# approve the interview and provide a comment
suso_patchApproveInterview(
workspace = "myworkspace",
intID = "dee7705f-d611-4b12-9b97-2b8e5b80c4ea",
comment = "Well done!"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.