CASE FrameworkCASE Framework

Create a new survey in a study

POST
/v1/studies/{studyKey}/surveys/

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

studyKey*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/studies/string/surveys/" \  -H "Content-Type: application/json" \  -d '{}'
{
  "survey": {
    "id": "string",
    "surveyKey": "string",
    "props": {},
    "prefillRules": [
      {}
    ],
    "contextRules": {},
    "maxItemsPerPage": {},
    "availableFor": "string",
    "requireLoginBeforeSubmission": true,
    "published": 0,
    "unpublished": 0,
    "surveyDefinition": {},
    "versionId": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    }
  }
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}