Publish the draft
curl --request POST \
--url https://judged.systems/api/packs/{packId}/publish \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"notes": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({notes: '<string>'})
};
fetch('https://judged.systems/api/packs/{packId}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/packs/{packId}/publish"
payload = { "notes": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"versionId": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Packs
Publish the draft
Requires packs:write. Copies the draft into a new published version and makes it the live version.
POST
/
api
/
packs
/
{packId}
/
publish
Publish the draft
curl --request POST \
--url https://judged.systems/api/packs/{packId}/publish \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"notes": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({notes: '<string>'})
};
fetch('https://judged.systems/api/packs/{packId}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/packs/{packId}/publish"
payload = { "notes": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"versionId": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}