---
title: Create a calibration
slug: api-guide/create-a-calibration
docTags: 
createdAt: 2025-01-15T09:05:21.396Z
---

{
  "id": "JciVYgJYOyOagthajmT5J",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.app.kognic.com/v2/calibrations",
    "servers": [
      {
        "url": "https://api.app.kognic.com/v2/calibrations"
      }
    ],
    "name": "Create a calibration",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "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": "CreateCalibration",
          "schema": [
            {
              "name": "content",
              "kind": "required",
              "type": "",
              "description": ""
            },
            {
              "name": "externalId",
              "kind": "required",
              "type": "string",
              "description": ""
            },
            {
              "name": "workspaceId",
              "kind": "required",
              "type": "string<uuid>",
              "description": "",
              "format": "uuid"
            }
          ],
          "modelRef": "#/components/schemas/CreateCalibration",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Enveloped_CalibrationCreated",
            "schema": [
              {
                "name": "data",
                "kind": "required",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/CalibrationCreated",
                "customType": "CalibrationCreated",
                "schema": [
                  {
                    "name": "id",
                    "kind": "required",
                    "type": "string<uuid>",
                    "description": "",
                    "format": "uuid"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/Enveloped_CalibrationCreated",
            "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": "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
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "Nqk9wR6ABOXvXYq5GE6Jq",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.app.kognic.com/v2/calibrations\"\n\npayload = json.dumps({\n   \"content\": \"\",\n   \"externalId\": \"\",\n   \"workspaceId\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "Nqk9wR6ABOXvXYq5GE6Jq"
    },
    "results": {
      "languages": [
        {
          "id": "09uv-efcFgU2zMGY8T59l",
          "language": "200",
          "code": "{\n  \"data\": {\n    \"id\": \"\"\n  }\n}"
        },
        {
          "id": "-bnwfhwCgaZusoywlS9gV",
          "language": "400",
          "code": "// Bad request\n{\n  \"errorCode\": \"\",\n  \"message\": \"\"\n}"
        },
        {
          "id": "T7t88rDyb8FptIx3UuMNZ",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "PIUkkMN2KUYRdI-djJklU",
          "language": "403",
          "code": "// Forbidden\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "EJ6osQ8I6J-J2bGvXE1uB",
          "language": "413",
          "code": "// Payload too large\n{\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "09uv-efcFgU2zMGY8T59l"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}