surveys

Create

POST
Creates a schema for survey, which includes name and description of schema.

Request

This endpoint expects an object.
name
stringRequired
The survey's name.
schema
list of maps from strings to anyRequired
Schema for the survey.
description
stringOptional
Description about the survey.

Response

This endpoint returns an object
survey
object
POST
1curl -X POST https://api.devrev.ai/surveys.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "name",
6 "schema": [
7 {}
8 ]
9}'
200
Successful
1{
2 "survey": {
3 "id": "id",
4 "schema": [],
5 "created_date": "2023-01-01T12:00:00Z",
6 "description": "description",
7 "display_id": "display_id",
8 "modified_date": "2023-01-01T12:00:00Z",
9 "name": "name"
10 }
11}