Skip to main content
POST
/
v5
/
questions
Create Question
curl --request POST \
  --url https://api.egp.scale.com/v5/questions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "prompt": "<string>",
  "question_type": "categorical",
  "configuration": {
    "choices": [
      "<string>"
    ]
  }
}'
{
  "id": "<string>",
  "object": "question",
  "created_by": {
    "id": "<string>",
    "object": "<string>",
    "type": "user"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "prompt": "<string>",
  "question_type": "categorical",
  "configuration": {
    "choices": [
      "<string>"
    ]
  }
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

application/json
  • CategoricalQuestionRequest
  • RatingQuestionRequest
  • NumberQuestionRequest
  • FreeTextQuestionRequest
  • FormQuestionRequest
name
string
required
prompt
string
required

user-facing question prompt

configuration
object
required
question_type
string
default:categorical
Allowed value: "categorical"

Response

Successful Response

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
id
string
required

Unique identifier of the entity

created_by
object
required

The identity that created the entity.

created_at
string<date-time>
required

ISO-timestamp when the entity was created

name
string
required
prompt
string
required

user-facing question prompt

configuration
object
required
object
string
default:question
Allowed value: "question"
question_type
string
default:categorical
Allowed value: "categorical"
I