curl --request POST \
--url https://pria.praxislxp.com/api/admin/institutionQuestions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"minimum": true,
"institution": "<string>"
}'
{
"success": true,
"data": [
{
"_id": "<string>",
"question": {
"_id": "<string>",
"code": "<string>",
"question": "<string>",
"objectif": "<string>",
"required": true,
"status": "<string>",
"position": 123,
"created": "2023-11-07T05:31:56Z",
"section": 123,
"mbti": true,
"__v": 123
},
"institution": {
"_id": "<string>",
"name": "<string>",
"picture": "<string>",
"credits": 123,
"creditsUsed": 123,
"creditsAwarded": 123,
"status": "active",
"publicId": "<string>",
"publicAuthorizedUrls": [
"<string>"
],
"ainame": "<string>",
"contactEmail": "<string>",
"poolCredits": true,
"created": "2023-11-07T05:31:56Z",
"conversationModel": "<string>",
"account": {
"_id": "<string>",
"name": "<string>"
},
"maxCompletionTokens": 123,
"creditsTotal": 123,
"creditsUsagePct": 123,
"id": "<string>",
"displayAgentDetails": true
},
"answer": "<string>",
"created": "2023-11-07T05:31:56Z",
"__v": 123
}
]
}
Get questions associated with a specific institution, with option for minimum data
curl --request POST \
--url https://pria.praxislxp.com/api/admin/institutionQuestions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"minimum": true,
"institution": "<string>"
}'
{
"success": true,
"data": [
{
"_id": "<string>",
"question": {
"_id": "<string>",
"code": "<string>",
"question": "<string>",
"objectif": "<string>",
"required": true,
"status": "<string>",
"position": 123,
"created": "2023-11-07T05:31:56Z",
"section": 123,
"mbti": true,
"__v": 123
},
"institution": {
"_id": "<string>",
"name": "<string>",
"picture": "<string>",
"credits": 123,
"creditsUsed": 123,
"creditsAwarded": 123,
"status": "active",
"publicId": "<string>",
"publicAuthorizedUrls": [
"<string>"
],
"ainame": "<string>",
"contactEmail": "<string>",
"poolCredits": true,
"created": "2023-11-07T05:31:56Z",
"conversationModel": "<string>",
"account": {
"_id": "<string>",
"name": "<string>"
},
"maxCompletionTokens": 123,
"creditsTotal": 123,
"creditsUsagePct": 123,
"id": "<string>",
"displayAgentDetails": true
},
"answer": "<string>",
"created": "2023-11-07T05:31:56Z",
"__v": 123
}
]
}
JWT token passed in x-access-token header
Successfully retrieved institution questions
The response is of type object
.
Was this page helpful?