Create EDD Responses
POST
https://api.sfox.com/v1/enterprise/eddq/responses
Submit a user's responses to an EDD request.
Request
Body Parameters
Parameter
Type
Description
user_id
required
string
The unique user ID of the user that you will be submitting responses for.
prompts
required
string
The list of prompts applicable to the requested EDDQ.
response
required
string
The response from your end user.
optional_free_form
string
The optional response from your end user if optional_free_form
= true
Example Requests
{
"user_id": "${USER_ID}",
"prompts": {
"1": { "response": "hello"},
"2": { "response": "hello"},
"3": { "response": "hello"},
"4": { "response": "hello"},
"5": { "response": "hello"},
"4": { "response": "hello", "optional_free_form":"hello world"},
"52": {"response": "id_file"},
"53": {"response": "por_file"}
}
}
curl -X POST \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${ENTERPRISE_API_KEY}" \
--data '{
"user_id": "${USER_ID}",
"prompts": {
"1": {"response": "${Response to prompt ID 1}"},
"2": {"response": "${Response to prompt ID 2}"},
"3": {"response": "${Response to prompt ID 3}"},
"52": {"response": "${filename1}"},
"53": {"response": "${filename2}"}
}
}' \
'https://api.sfox.com/v1/enterprise/eddq/responses'
Response
Last updated