Skip to main content

Update a test

Update a curated set of test metadata fields. Scope: tests:write.

PATCH/api/v1/tests/{id} 🔒 API key

Updates a curated subset of a test’s metadata — never the question content. Scope: tests:write. Requires employer-write authority in one of the test’s organizations (admins bypass; platform-global tests with no organization are admin-only). Send only the fields you want to change.

Path parameters

ParameterTypeDescription
idstringThe test id.

Request body

FieldTypeDescription
namestringTest name.
descriptionstringTest description.
analysisCategorystringAnalysis category.
languagestringLanguage (ISO 639-1).
typestringTest type.
targetPersonastring | nullTarget persona.
durationintegerDuration in minutes.

Example request

curl -X PATCH https://app.talent-ray.com/api/v1/tests/test_js \
  -H "Authorization: Bearer tr_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "JavaScript Fundamentals (2026)", "duration": 35 }'

Response

200 OK — the updated test (same shape as Get a test).

Status codes

StatusMeaning
200Updated.
400bad_request — invalid or empty body.
401No valid API key.
403insufficient_scope (missing tests:write) or forbidden (no write authority in the test’s org).
404Not found, or not visible to the key.
429Rate limit exceeded.