Update custom case
curl --request PATCH \
--url https://assess.praxicraft.com/api/v1/public/tasks/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"points": 1073741823,
"time_limit_minutes": 1073741823,
"question": "<string>",
"options": "<unknown>",
"allow_multiple": true,
"starter_code": "<string>",
"expected_output": "<string>",
"rubric": "<string>",
"tags": "<unknown>"
}
'import requests
url = "https://assess.praxicraft.com/api/v1/public/tasks/{id}/"
payload = {
"title": "<string>",
"description": "<string>",
"points": 1073741823,
"time_limit_minutes": 1073741823,
"question": "<string>",
"options": "<unknown>",
"allow_multiple": True,
"starter_code": "<string>",
"expected_output": "<string>",
"rubric": "<string>",
"tags": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
points: 1073741823,
time_limit_minutes: 1073741823,
question: '<string>',
options: '<unknown>',
allow_multiple: true,
starter_code: '<string>',
expected_output: '<string>',
rubric: '<string>',
tags: '<unknown>'
})
};
fetch('https://assess.praxicraft.com/api/v1/public/tasks/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://assess.praxicraft.com/api/v1/public/tasks/{id}/';
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
points: 1073741823,
time_limit_minutes: 1073741823,
question: '<string>',
options: '<unknown>',
allow_multiple: true,
starter_code: '<string>',
expected_output: '<string>',
rubric: '<string>',
tags: '<unknown>'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://assess.praxicraft.com/api/v1/public/tasks/{id}/"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"points\": 1073741823,\n \"time_limit_minutes\": 1073741823,\n \"question\": \"<string>\",\n \"options\": \"<unknown>\",\n \"allow_multiple\": true,\n \"starter_code\": \"<string>\",\n \"expected_output\": \"<string>\",\n \"rubric\": \"<string>\",\n \"tags\": \"<unknown>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"case_type": "mcq",
"difficulty": "easy",
"points": 1073741823,
"time_limit_minutes": 1073741823,
"question": "<string>",
"options": "<unknown>",
"allow_multiple": true,
"language": "python",
"starter_code": "<string>",
"expected_output": "<string>",
"rubric": "<string>",
"tags": "<unknown>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"message": "This API key does not have the 'tasks:write' scope.",
"code": "INSUFFICIENT_SCOPE"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Public API — Tasks
Update custom case
Required scope:
tasks:read(route) ·tasks:write(required to update)
Partially or fully updates a custom case.
Responses
| Status | Code | When |
|---|---|---|
200 | — | Updated case returned |
400 | — | Validation error on request body |
403 | INSUFFICIENT_SCOPE | API key lacks tasks:write |
404 | — | Case not found |
Authentication & rate limits (all endpoints)
| Status | Code | When |
|---|---|---|
401 | INVALID_API_KEY | Missing or invalid bearer token |
401 | EXPIRED_API_KEY | API key past its optional expires_at |
403 | INSUFFICIENT_SCOPE | API key lacks the required scope for this operation |
403 | IP_NOT_ALLOWED | Client IP is outside this key’s CIDR allowlist |
429 | RATE_LIMITED | Rate limit exceeded — plan-tiered reads/writes per organisation per hour |
PATCH
/
api
/
v1
/
public
/
tasks
/
{id}
/
Update custom case
curl --request PATCH \
--url https://assess.praxicraft.com/api/v1/public/tasks/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"points": 1073741823,
"time_limit_minutes": 1073741823,
"question": "<string>",
"options": "<unknown>",
"allow_multiple": true,
"starter_code": "<string>",
"expected_output": "<string>",
"rubric": "<string>",
"tags": "<unknown>"
}
'import requests
url = "https://assess.praxicraft.com/api/v1/public/tasks/{id}/"
payload = {
"title": "<string>",
"description": "<string>",
"points": 1073741823,
"time_limit_minutes": 1073741823,
"question": "<string>",
"options": "<unknown>",
"allow_multiple": True,
"starter_code": "<string>",
"expected_output": "<string>",
"rubric": "<string>",
"tags": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
points: 1073741823,
time_limit_minutes: 1073741823,
question: '<string>',
options: '<unknown>',
allow_multiple: true,
starter_code: '<string>',
expected_output: '<string>',
rubric: '<string>',
tags: '<unknown>'
})
};
fetch('https://assess.praxicraft.com/api/v1/public/tasks/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://assess.praxicraft.com/api/v1/public/tasks/{id}/';
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
points: 1073741823,
time_limit_minutes: 1073741823,
question: '<string>',
options: '<unknown>',
allow_multiple: true,
starter_code: '<string>',
expected_output: '<string>',
rubric: '<string>',
tags: '<unknown>'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://assess.praxicraft.com/api/v1/public/tasks/{id}/"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"points\": 1073741823,\n \"time_limit_minutes\": 1073741823,\n \"question\": \"<string>\",\n \"options\": \"<unknown>\",\n \"allow_multiple\": true,\n \"starter_code\": \"<string>\",\n \"expected_output\": \"<string>\",\n \"rubric\": \"<string>\",\n \"tags\": \"<unknown>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"case_type": "mcq",
"difficulty": "easy",
"points": 1073741823,
"time_limit_minutes": 1073741823,
"question": "<string>",
"options": "<unknown>",
"allow_multiple": true,
"language": "python",
"starter_code": "<string>",
"expected_output": "<string>",
"rubric": "<string>",
"tags": "<unknown>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"message": "This API key does not have the 'tasks:write' scope.",
"code": "INSUFFICIENT_SCOPE"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Organisation API key created in Assess → Developer → API Keys. Format: Bearer ct_live_<your-key> (live) or Bearer ct_test_<your-key> (test). Optional per-key CIDR allowlists return 403 IP_NOT_ALLOWED.
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Required string length:
1 - 500Available options:
mcq, coding, text Available options:
easy, medium, hard Required range:
0 <= x <= 2147483647Required range:
0 <= x <= 2147483647List of {id, text, is_correct} dicts for MCQ
MCQ: allow selecting multiple answers
Available options:
python, sql, javascript, Keywords/criteria for scoring
Response
Maximum string length:
500Available options:
mcq, coding, text Available options:
easy, medium, hard Required range:
0 <= x <= 2147483647Required range:
0 <= x <= 2147483647List of {id, text, is_correct} dicts for MCQ
MCQ: allow selecting multiple answers
Available options:
python, sql, javascript, Keywords/criteria for scoring
Last modified on September 5, 2026