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": "identity",
    "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
name
string
required
prompt
string
required

user-facing question prompt

configuration
object
required
question_type
enum<string>
default:categorical
Available options:
TitleConst
Question Typecategorical

Response

Successful Response

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
enum<string>
default:question
Available options:
TitleConst
Objectquestion
question_type
enum<string>
default:categorical
Available options:
TitleConst
Question Typecategorical