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>"
]
}
}
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>"
]
}
}
Successful Response
The response is of type object
.