---
title: Update pre-annotation judgement for request input
slug: api-guide/update-pre-annotation-judgement-for-request-input
docTags: 
createdAt: 2025-07-24T16:07:07.691Z
---

{
  "id": "GC7iGB3-8foqBxpoT8tK1",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "https://api.app.kognic.com/v1/request-inputs/{requestInputId}",
    "servers": [
      {
        "url": "https://api.app.kognic.com/v1/request-inputs/{requestInputId}"
      }
    ],
    "name": "Update pre-annotation judgement for request input",
    "description": "<p>Set the pre-annotation judgement for a request input, used to seed annotation work from an existing\njudgement. Returns 204 No Content on success.</p>\n<p><strong>Access:</strong> the caller must hold a workspace Admin, Developer or Project Manager role on the input's\nproject, otherwise 403. Returns 404 if the input does not exist.</p>\n<p><strong>Body validation:</strong></p>\n<ul>\n<li><code>preAnnotationJudgementId</code> is required. Omitting it (<code>null</code>) returns 400: this endpoint cannot unset a\npre-annotation.</li>\n<li>The referenced judgement must exist, otherwise 404.</li>\n<li>The input must have no completed or live in-progress work, otherwise 400. Discarded work does not\ncount: an expired in-progress assignment, or work on a task that was deleted (e.g. by a request\nreset), still allows the pre-annotation to be (re)set.</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "requestInputId",
          "type": "string<uuid>",
          "description": "",
          "format": "uuid"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "UpdateRequestInput",
          "schema": [
            {
              "name": "preAnnotationJudgementId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "",
              "format": "uuid"
            }
          ],
          "modelRef": "#/components/schemas/UpdateRequestInput",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "Bad request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "BadRequest",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": ""
              },
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/BadRequest",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Unauthorized",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/Unauthorized",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Forbidden",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/Forbidden",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "NotFound",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/NotFound",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "413",
        "description": "Payload too large",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "PayloadTooLarge",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/PayloadTooLarge",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal server error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "InternalServerError",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/InternalServerError",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "gUfWCzc_9TXg_a7VR0hh1",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.app.kognic.com/v1/request-inputs/{requestInputId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "gUfWCzc_9TXg_a7VR0hh1"
    },
    "results": {
      "languages": [
        {
          "id": "ipPl4omgkn9yjCDKXuTan",
          "language": "204",
          "code": ""
        },
        {
          "id": "g_IFGngBz0KUhAsZ5RGjC",
          "language": "400",
          "code": "// Bad request\n{\n  \"errorCode\": \"\",\n  \"message\": \"\"\n}"
        },
        {
          "id": "OkSuLDyrLH8s7IIGvgU_y",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "x-SVMMoyKMlw9TEJgWUzC",
          "language": "403",
          "code": "// Forbidden\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "tLlvnau-2cA5d-dihFc10",
          "language": "404",
          "code": "// Not found\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "1N1G9_5e43F9bDnmreo6U",
          "language": "413",
          "code": "// Payload too large\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "7e1jCqk15hREYrc2eOa8V",
          "language": "500",
          "code": "// Internal server error\n{\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "ipPl4omgkn9yjCDKXuTan"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}