Get a pack
curl --request GET \
--url https://judged.systems/api/packs/{packId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://judged.systems/api/packs/{packId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/packs/{packId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"liveVersionId": "<string>",
"draftVersionId": "<string>",
"document": {
"questions": [
{
"type": "choice",
"id": "<string>",
"name": "<string>",
"instructions": "<string>",
"criteria": {},
"review": {
"minSelectedProbability": 0.5
}
}
]
},
"liveDocument": {
"questions": [
{
"type": "choice",
"id": "<string>",
"name": "<string>",
"instructions": "<string>",
"criteria": {},
"review": {
"minSelectedProbability": 0.5
}
}
]
},
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"issues": [
{}
]
}Packs
Get a pack
Requires packs:read. document is the draft. liveDocument is null when the pack has no published version.
GET
/
api
/
packs
/
{packId}
Get a pack
curl --request GET \
--url https://judged.systems/api/packs/{packId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://judged.systems/api/packs/{packId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/packs/{packId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"liveVersionId": "<string>",
"draftVersionId": "<string>",
"document": {
"questions": [
{
"type": "choice",
"id": "<string>",
"name": "<string>",
"instructions": "<string>",
"criteria": {},
"review": {
"minSelectedProbability": 0.5
}
}
]
},
"liveDocument": {
"questions": [
{
"type": "choice",
"id": "<string>",
"name": "<string>",
"instructions": "<string>",
"criteria": {},
"review": {
"minSelectedProbability": 0.5
}
}
]
},
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"issues": [
{}
]
}Authorizations
apiKeybearerAuth