curl --request POST \
--url https://app.formbricks.com/api/v2/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--data '{
"surveyId": "survey123",
"responses": {}
}'
{
"responseId": "response123"
}
Create a response for a survey and its fields with the user’s responses. The userId & meta here is optional
curl --request POST \
--url https://app.formbricks.com/api/v2/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--data '{
"surveyId": "survey123",
"responses": {}
}'
{
"responseId": "response123"
}
Created
The response is of type object
.
Was this page helpful?