cURL
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>", "configuration": { "choices": [ "<string>" ], "multi": true, "dropdown": true }, "conditions": [ {} ], "question_type": "categorical" } '
{ "id": "<string>", "created_by": { "id": "<string>", "type": "user", "object": "identity" }, "created_at": "2023-11-07T05:31:56Z", "name": "<string>", "prompt": "<string>", "configuration": { "choices": [ "<string>" ], "multi": true, "dropdown": true }, "object": "question", "conditions": [ {} ], "question_type": "categorical" }
user-facing question prompt
Show child attributes
Conditions for the question to be shown
"categorical"
Successful Response
Unique identifier of the entity
The identity that created the entity.
ISO-timestamp when the entity was created
"question"