Checks

Update a check

Renames a check and/or changes its language. Equivalent to PATCH /checks/{checkId}.

post/check/update

Request

  • Base URL: https://codequiry.com/api/v1
  • URL: https://codequiry.com/api/v1/check/update
  • Auth: API key in header apikey

Request body

check_idinteger required
namestring
languageinteger

Language id from GET /languages. Use 999 for Auto Detect. As on /check/create, an unknown or invalid id falls back to Auto Detect and still returns 200 - the check is never left pointing at a language that does not exist, but a typo will not be reported either.

Example request

{
  "check_id": 12345,
  "name": "CS-201 Assignment 4 (regrade)",
  "language": 13
}

Response

Updated check

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Check updated successfully",
  "check": {
    "stats": {
      "submissions": 24,
      "completed": 24,
      "avg_group": 18.4,
      "max_group": 82,
      "avg_web": 9.1,
      "max_web": 100,
      "flagged": 2,
      "avg_ai": 31.6,
      "max_ai": 97.2,
      "ai_submissions": 24,
      "ai_flagged": 3,
      "matches": 41
    },
    "id": 12345,
    "name": "CS-201 Assignment 4",
    "status_id": 4,
    "language_id": 13,
    "test_type": 1,
    "ai_run": 1,
    "created_at": "2026-08-11 09:14:02",
    "updated_at": "2026-08-11 09:41:37",
    "assignmentstatuses": {
      "id": 4,
      "status": "Completed"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.