Replace assessment cases
curl --request PUT \
--url https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tasks": [
{
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123
}
],
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123,
"assessment_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/"
payload = {
"tasks": [
{
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123
}
],
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123,
"assessment_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tasks: [
{
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123
}
],
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123,
assessment_task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/';
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tasks: [
{
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123
}
],
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123,
assessment_task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
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/assessments/{slug}/tasks/replace/"
payload := strings.NewReader("{\n \"tasks\": [\n {\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"order\": 123,\n \"weight\": 123,\n \"time_limit_minutes\": 123\n }\n ],\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"order\": 123,\n \"weight\": 123,\n \"time_limit_minutes\": 123,\n \"assessment_task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PUT", 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))
}{
"assessment_task_id": "at111111-1111-1111-1111-111111111111",
"id": "t1111111-1111-1111-1111-111111111111",
"title": "SQL warehouse joins",
"description": "Join fact and dim tables for a daily report.",
"type": "platform",
"task_type": "sql",
"difficulty": "intermediate",
"order": 0,
"points": 100
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"message": "Invalid or revoked API Key.",
"code": "INVALID_API_KEY"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Public API — Assessments
Replace assessment cases
Required scope:
assessments:write
Atomically replaces the full task lineup with { tasks: [...] }.
Responses
| Status | Code | When |
|---|---|---|
200 | — | New lineup returned |
403 | LIMIT_REACHED | Plan case-per-assessment limit |
404 | TASK_NOT_FOUND | Unknown case id |
409 | TASKS_LOCKED | Candidates have already started |
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 |
PUT
/
api
/
v1
/
public
/
assessments
/
{slug}
/
tasks
/
replace
/
Replace assessment cases
curl --request PUT \
--url https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tasks": [
{
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123
}
],
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123,
"assessment_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/"
payload = {
"tasks": [
{
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123
}
],
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": 123,
"weight": 123,
"time_limit_minutes": 123,
"assessment_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tasks: [
{
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123
}
],
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123,
assessment_task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://assess.praxicraft.com/api/v1/public/assessments/{slug}/tasks/replace/';
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tasks: [
{
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123
}
],
task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
order: 123,
weight: 123,
time_limit_minutes: 123,
assessment_task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
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/assessments/{slug}/tasks/replace/"
payload := strings.NewReader("{\n \"tasks\": [\n {\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"order\": 123,\n \"weight\": 123,\n \"time_limit_minutes\": 123\n }\n ],\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"order\": 123,\n \"weight\": 123,\n \"time_limit_minutes\": 123,\n \"assessment_task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PUT", 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))
}{
"assessment_task_id": "at111111-1111-1111-1111-111111111111",
"id": "t1111111-1111-1111-1111-111111111111",
"title": "SQL warehouse joins",
"description": "Join fact and dim tables for a daily report.",
"type": "platform",
"task_type": "sql",
"difficulty": "intermediate",
"order": 0,
"points": 100
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"message": "Invalid or revoked API Key.",
"code": "INVALID_API_KEY"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"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
Last modified on September 5, 2026