Get a survey response
curl --request GET \
--url https://deployed.workauthor.com/api/v1/surveys/responses/{Id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://deployed.workauthor.com/api/v1/surveys/responses/{Id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://deployed.workauthor.com/api/v1/surveys/responses/{Id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"user": "<string>",
"submitted": "2023-11-07T05:31:56Z",
"questions": [
{
"question": "<string>",
"rating": 123,
"answer": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"code": "<string>",
"description": "<string>",
"type": 123
}
],
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"code": "<string>",
"description": "<string>",
"type": 123
}
],
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"code": "<string>",
"description": "<string>",
"type": 123
}
],
"traceId": "<string>"
}Get a survey response
A survey response: user, submitted, and every question with its rating and answer.
GET
/
api
/
v1
/
surveys
/
responses
/
{Id}
Get a survey response
curl --request GET \
--url https://deployed.workauthor.com/api/v1/surveys/responses/{Id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://deployed.workauthor.com/api/v1/surveys/responses/{Id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://deployed.workauthor.com/api/v1/surveys/responses/{Id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"user": "<string>",
"submitted": "2023-11-07T05:31:56Z",
"questions": [
{
"question": "<string>",
"rating": 123,
"answer": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"code": "<string>",
"description": "<string>",
"type": 123
}
],
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"code": "<string>",
"description": "<string>",
"type": 123
}
],
"traceId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"errors": [
{
"code": "<string>",
"description": "<string>",
"type": 123
}
],
"traceId": "<string>"
}⌘I