---
title: Create
slug: celsis/create
docTags: 
createdAt: 2026-10-15T10:19:51.763Z
---

{
  "id": "DY0zucTOBoz-4mMyD-8rX",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://celsis.frontu.dev/client/api/v2/integration/tasks",
    "servers": [
      {
        "url": "https://celsis.frontu.dev/client/api/v2/integration/tasks"
      }
    ],
    "name": "Create",
    "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": "TaskRequest",
          "schema": [
            {
              "name": "tipas",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "OP",
              "maxLength": 2
            },
            {
              "name": "kodasPo",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "PO001",
              "maxLength": 12
            },
            {
              "name": "dokNr",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "DOK-0001",
              "maxLength": 20
            },
            {
              "name": "opTip",
              "kind": "required",
              "type": "integer",
              "description": "",
              "example": 1,
              "minimum": -128,
              "maximum": 127
            },
            {
              "name": "taskTipas",
              "kind": "required",
              "type": "integer",
              "description": "",
              "example": 2,
              "minimum": -128,
              "maximum": 127
            },
            {
              "name": "data",
              "kind": "required",
              "type": "string<date-time>",
              "description": "",
              "example": "2025-01-15 10:00:00",
              "format": "date-time"
            },
            {
              "name": "klientas",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "UAB Test Client",
              "maxLength": 70
            },
            {
              "name": "klientoKodas",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "KL001",
              "maxLength": 12
            },
            {
              "name": "objektoAdresas",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "Vilniaus g. 1, Vilnius",
              "maxLength": 80
            },
            {
              "name": "pastaba",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": "Test task note",
              "maxLength": 1000
            },
            {
              "name": "timestamp00",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "",
              "example": "2025-01-15 10:00:00",
              "format": "date-time"
            },
            {
              "name": "timestamp01",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "",
              "example": "",
              "format": "date-time"
            },
            {
              "name": "timestamp02",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "",
              "example": "",
              "format": "date-time"
            },
            {
              "name": "timestamp03",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "",
              "example": "",
              "format": "date-time"
            },
            {
              "name": "timestamp04",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "",
              "example": "",
              "format": "date-time"
            },
            {
              "name": "prioritetas",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "",
              "example": 1,
              "format": "int32"
            },
            {
              "name": "mspav",
              "kind": "required",
              "type": "string",
              "description": "<p>Required. Creator's first and last name, separated by a space (\"Vardas Pavardė\"), stored in I00_Ms_Pav. A missing or blank value is rejected with 400. The importer resolves it to the Frontu user with that name and surname; a row that still has no name and surname is not imported but reported in the integration log and retried on the next run once the field is filled in.</p>",
              "example": "Jonas Jonaitis",
              "maxLength": 40
            },
            {
              "name": "atrinko",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": "",
              "maxLength": 40
            },
            {
              "name": "kodasIs",
              "kind": "optional",
              "type": "string",
              "description": "<p>Office of the task, stored in I00_KODAS_IS and copied to the task's custom office. Tablets list an unassigned task (taskTipas 1 without sandUseris) only for users whose office title equals this value, so it is required there: a blank value is rejected with 400 (on update, when taskTipas, sandUseris or kodasIs is sent). A task imported as unassigned without it is reported in the integration log.</p>",
              "example": "IS001",
              "maxLength": 12
            },
            {
              "name": "kodasNr",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "",
              "example": 1,
              "format": "int32"
            },
            {
              "name": "urlai",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": ""
            },
            {
              "name": "grupe",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": "GRP01",
              "maxLength": 20
            },
            {
              "name": "sandUseris",
              "kind": "optional",
              "type": "string",
              "description": "",
              "example": "",
              "maxLength": 12
            },
            {
              "name": "priskirtaRinkti",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "",
              "example": "",
              "format": "date-time"
            },
            {
              "name": "rinkimoLaikas",
              "kind": "optional",
              "type": "integer",
              "description": "",
              "example": ""
            }
          ],
          "modelRef": "#/components/schemas/TaskRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>Value: Bearer {access_token}</p>",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "Created",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "cls_I00_TaskH",
            "schema": [
              {
                "name": "I00_ID",
                "kind": "optional",
                "type": "integer",
                "description": "",
                "example": 248474
              },
              {
                "name": "I00_Tipas",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "OP"
              },
              {
                "name": "I00_Kodas_Po",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "PO001"
              },
              {
                "name": "I00_Dok_Nr",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "DOK-0001"
              },
              {
                "name": "I00_Op_Tip",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "1"
              },
              {
                "name": "I00_Task_Tipas",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "2"
              },
              {
                "name": "I00_Data",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "",
                "example": "2025-01-15 10:00:00",
                "format": "date-time"
              },
              {
                "name": "I00_Kl_Pav",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "UAB Test Client"
              },
              {
                "name": "I00_Klientas",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "KL001"
              },
              {
                "name": "I00_Kl_Adr",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Vilniaus g. 1, Vilnius"
              },
              {
                "name": "I00_Pastaba",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Test task note"
              },
              {
                "name": "I00_TimeStamp00",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "",
                "example": "2025-01-15 10:00:00",
                "format": "date-time"
              },
              {
                "name": "I00_TimeStamp01",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "I00_TimeStamp02",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "I00_TimeStamp03",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "I00_TimeStamp04",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "I00_Prioritetas",
                "kind": "optional",
                "type": "integer",
                "nullable": true,
                "description": "",
                "example": 1
              },
              {
                "name": "I00_Ms_Pav",
                "kind": "optional",
                "type": "string",
                "description": "Creator's first and last name as posted in mspav.",
                "example": "Jonas Jonaitis"
              },
              {
                "name": "I00_Atrinko",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "I00_KODAS_IS",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "IS001"
              },
              {
                "name": "I00_Kodas_Nr",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "1"
              },
              {
                "name": "urlai",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "I00_Grupe",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "GRP01"
              },
              {
                "name": "SandUseris",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "I00_Priskirta_Rinkti",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "",
                "example": "",
                "format": "date-time"
              },
              {
                "name": "I00_Rinkimo_Laikas",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/cls_I00_TaskH",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Validation errors",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "TaskError",
            "schema": [
              {
                "name": "errors",
                "kind": "optional",
                "type": "object",
                "description": "",
                "example": "{\"data\":[\"This value should not be null.\"],\"klientas\":[\"This value is too long. It should have 70 characters or less.\"]}",
                "schema": []
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/cls_I00_TaskH",
                "customType": "cls_I00_TaskH",
                "schema": [
                  {
                    "name": "I00_ID",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 248474
                  },
                  {
                    "name": "I00_Tipas",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "OP"
                  },
                  {
                    "name": "I00_Kodas_Po",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "PO001"
                  },
                  {
                    "name": "I00_Dok_Nr",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "DOK-0001"
                  },
                  {
                    "name": "I00_Op_Tip",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "1"
                  },
                  {
                    "name": "I00_Task_Tipas",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "2"
                  },
                  {
                    "name": "I00_Data",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "",
                    "example": "2025-01-15 10:00:00",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_Kl_Pav",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "UAB Test Client"
                  },
                  {
                    "name": "I00_Klientas",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "KL001"
                  },
                  {
                    "name": "I00_Kl_Adr",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Vilniaus g. 1, Vilnius"
                  },
                  {
                    "name": "I00_Pastaba",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Test task note"
                  },
                  {
                    "name": "I00_TimeStamp00",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "2025-01-15 10:00:00",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp01",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp02",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp03",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp04",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_Prioritetas",
                    "kind": "optional",
                    "type": "integer",
                    "nullable": true,
                    "description": "",
                    "example": 1
                  },
                  {
                    "name": "I00_Ms_Pav",
                    "kind": "optional",
                    "type": "string",
                    "description": "Creator's first and last name as posted in mspav.",
                    "example": "Jonas Jonaitis"
                  },
                  {
                    "name": "I00_Atrinko",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "I00_KODAS_IS",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "IS001"
                  },
                  {
                    "name": "I00_Kodas_Nr",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "1"
                  },
                  {
                    "name": "urlai",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "I00_Grupe",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "GRP01"
                  },
                  {
                    "name": "SandUseris",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "I00_Priskirta_Rinkti",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_Rinkimo_Laikas",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "",
                    "example": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/TaskError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "409",
        "description": "<p>A record with the same key (I00_Tipas + I00_Kodas_Po + I00_Kodas_Nr) already exists. Nothing is created; the response carries the existing record and its I00_ID.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "error",
                "kind": "optional",
                "type": "string",
                "description": "",
                "example": "Duplicate entry"
              },
              {
                "name": "I00_ID",
                "kind": "optional",
                "type": "integer",
                "description": "",
                "example": 248474
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/cls_I00_TaskH",
                "customType": "cls_I00_TaskH",
                "schema": [
                  {
                    "name": "I00_ID",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 248474
                  },
                  {
                    "name": "I00_Tipas",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "OP"
                  },
                  {
                    "name": "I00_Kodas_Po",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "PO001"
                  },
                  {
                    "name": "I00_Dok_Nr",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "DOK-0001"
                  },
                  {
                    "name": "I00_Op_Tip",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "1"
                  },
                  {
                    "name": "I00_Task_Tipas",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "2"
                  },
                  {
                    "name": "I00_Data",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "",
                    "example": "2025-01-15 10:00:00",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_Kl_Pav",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "UAB Test Client"
                  },
                  {
                    "name": "I00_Klientas",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "KL001"
                  },
                  {
                    "name": "I00_Kl_Adr",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Vilniaus g. 1, Vilnius"
                  },
                  {
                    "name": "I00_Pastaba",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Test task note"
                  },
                  {
                    "name": "I00_TimeStamp00",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "2025-01-15 10:00:00",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp01",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp02",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp03",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_TimeStamp04",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_Prioritetas",
                    "kind": "optional",
                    "type": "integer",
                    "nullable": true,
                    "description": "",
                    "example": 1
                  },
                  {
                    "name": "I00_Ms_Pav",
                    "kind": "optional",
                    "type": "string",
                    "description": "Creator's first and last name as posted in mspav.",
                    "example": "Jonas Jonaitis"
                  },
                  {
                    "name": "I00_Atrinko",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "I00_KODAS_IS",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "IS001"
                  },
                  {
                    "name": "I00_Kodas_Nr",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "1"
                  },
                  {
                    "name": "urlai",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "I00_Grupe",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "GRP01"
                  },
                  {
                    "name": "SandUseris",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "I00_Priskirta_Rinkti",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "",
                    "example": "",
                    "format": "date-time"
                  },
                  {
                    "name": "I00_Rinkimo_Laikas",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "OPQuqQIwTqwj1-M3fbSmo",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://celsis.frontu.dev/client/api/v2/integration/tasks \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"tipas\": \"OP\",\n     \"kodasPo\": \"PO001\",\n     \"dokNr\": \"DOK-0001\",\n     \"opTip\": 1,\n     \"taskTipas\": 2,\n     \"data\": \"2025-01-15 10:00:00\",\n     \"klientas\": \"UAB Test Client\",\n     \"klientoKodas\": \"KL001\",\n     \"objektoAdresas\": \"Vilniaus g. 1, Vilnius\",\n     \"mspav\": \"Jonas Jonaitis\"\n     }'"
        },
        {
          "id": "Zb6abzORruWQ2XApZvAis",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"tipas\": \"OP\",\n   \"kodasPo\": \"PO001\",\n   \"dokNr\": \"DOK-0001\",\n   \"opTip\": 1,\n   \"taskTipas\": 2,\n   \"data\": \"2025-01-15 10:00:00\",\n   \"klientas\": \"UAB Test Client\",\n   \"klientoKodas\": \"KL001\",\n   \"objektoAdresas\": \"Vilniaus g. 1, Vilnius\",\n   \"mspav\": \"Jonas Jonaitis\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://celsis.frontu.dev/client/api/v2/integration/tasks\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "FqlvSRLEnvdzMmFhjX6zd",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://celsis.frontu.dev/client/api/v2/integration/tasks\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"tipas\": \"OP\",\n   \"kodasPo\": \"PO001\",\n   \"dokNr\": \"DOK-0001\",\n   \"opTip\": 1,\n   \"taskTipas\": 2,\n   \"data\": \"2025-01-15 10:00:00\",\n   \"klientas\": \"UAB Test Client\",\n   \"klientoKodas\": \"KL001\",\n   \"objektoAdresas\": \"Vilniaus g. 1, Vilnius\",\n   \"mspav\": \"Jonas Jonaitis\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "UkDKp8IeryimtfY4-FYHb",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://celsis.frontu.dev/client/api/v2/integration/tasks\"\n\npayload = json.dumps({\n   \"tipas\": \"OP\",\n   \"kodasPo\": \"PO001\",\n   \"dokNr\": \"DOK-0001\",\n   \"opTip\": 1,\n   \"taskTipas\": 2,\n   \"data\": \"2025-01-15 10:00:00\",\n   \"klientas\": \"UAB Test Client\",\n   \"klientoKodas\": \"KL001\",\n   \"objektoAdresas\": \"Vilniaus g. 1, Vilnius\",\n   \"mspav\": \"Jonas Jonaitis\"\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": "OPQuqQIwTqwj1-M3fbSmo"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-201",
          "language": "201",
          "code": "// Created\n{\n  \"I00_ID\": 248474,\n  \"I00_Tipas\": \"OP\",\n  \"I00_Kodas_Po\": \"PO001\",\n  \"I00_Dok_Nr\": \"DOK-0001\",\n  \"I00_Op_Tip\": \"1\",\n  \"I00_Task_Tipas\": \"2\",\n  \"I00_Data\": \"2025-01-15 10:00:00\",\n  \"I00_Kl_Pav\": \"UAB Test Client\",\n  \"I00_Klientas\": \"KL001\",\n  \"I00_Kl_Adr\": \"Vilniaus g. 1, Vilnius\",\n  \"I00_Pastaba\": \"Test task note\",\n  \"I00_TimeStamp00\": \"2025-01-15 10:00:00\",\n  \"I00_TimeStamp01\": \"\",\n  \"I00_TimeStamp02\": \"\",\n  \"I00_TimeStamp03\": \"\",\n  \"I00_TimeStamp04\": \"\",\n  \"I00_Prioritetas\": 1,\n  \"I00_Ms_Pav\": \"Jonas Jonaitis\",\n  \"I00_Atrinko\": \"\",\n  \"I00_KODAS_IS\": \"IS001\",\n  \"I00_Kodas_Nr\": \"1\",\n  \"urlai\": \"\",\n  \"I00_Grupe\": \"GRP01\",\n  \"SandUseris\": \"\",\n  \"I00_Priskirta_Rinkti\": \"\",\n  \"I00_Rinkimo_Laikas\": \"\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Validation errors\n{\n  \"errors\": {},\n  \"data\": {\n    \"I00_ID\": 248474,\n    \"I00_Tipas\": \"OP\",\n    \"I00_Kodas_Po\": \"PO001\",\n    \"I00_Dok_Nr\": \"DOK-0001\",\n    \"I00_Op_Tip\": \"1\",\n    \"I00_Task_Tipas\": \"2\",\n    \"I00_Data\": \"2025-01-15 10:00:00\",\n    \"I00_Kl_Pav\": \"UAB Test Client\",\n    \"I00_Klientas\": \"KL001\",\n    \"I00_Kl_Adr\": \"Vilniaus g. 1, Vilnius\",\n    \"I00_Pastaba\": \"Test task note\",\n    \"I00_TimeStamp00\": \"2025-01-15 10:00:00\",\n    \"I00_TimeStamp01\": \"\",\n    \"I00_TimeStamp02\": \"\",\n    \"I00_TimeStamp03\": \"\",\n    \"I00_TimeStamp04\": \"\",\n    \"I00_Prioritetas\": 1,\n    \"I00_Ms_Pav\": \"Jonas Jonaitis\",\n    \"I00_Atrinko\": \"\",\n    \"I00_KODAS_IS\": \"IS001\",\n    \"I00_Kodas_Nr\": \"1\",\n    \"urlai\": \"\",\n    \"I00_Grupe\": \"GRP01\",\n    \"SandUseris\": \"\",\n    \"I00_Priskirta_Rinkti\": \"\",\n    \"I00_Rinkimo_Laikas\": \"\"\n  }\n}"
        },
        {
          "id": "response-2-409",
          "language": "409",
          "code": "// A record with the same key (I00_Tipas + I00_Kodas_Po + I00_Kodas_Nr) already exists. Nothing is created; the response carries the existing record and its I00_ID.\n{\n  \"error\": \"Duplicate entry\",\n  \"I00_ID\": 248474,\n  \"data\": {\n    \"I00_ID\": 248474,\n    \"I00_Tipas\": \"OP\",\n    \"I00_Kodas_Po\": \"PO001\",\n    \"I00_Dok_Nr\": \"DOK-0001\",\n    \"I00_Op_Tip\": \"1\",\n    \"I00_Task_Tipas\": \"2\",\n    \"I00_Data\": \"2025-01-15 10:00:00\",\n    \"I00_Kl_Pav\": \"UAB Test Client\",\n    \"I00_Klientas\": \"KL001\",\n    \"I00_Kl_Adr\": \"Vilniaus g. 1, Vilnius\",\n    \"I00_Pastaba\": \"Test task note\",\n    \"I00_TimeStamp00\": \"2025-01-15 10:00:00\",\n    \"I00_TimeStamp01\": \"\",\n    \"I00_TimeStamp02\": \"\",\n    \"I00_TimeStamp03\": \"\",\n    \"I00_TimeStamp04\": \"\",\n    \"I00_Prioritetas\": 1,\n    \"I00_Ms_Pav\": \"Jonas Jonaitis\",\n    \"I00_Atrinko\": \"\",\n    \"I00_KODAS_IS\": \"IS001\",\n    \"I00_Kodas_Nr\": \"1\",\n    \"urlai\": \"\",\n    \"I00_Grupe\": \"GRP01\",\n    \"SandUseris\": \"\",\n    \"I00_Priskirta_Rinkti\": \"\",\n    \"I00_Rinkimo_Laikas\": \"\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-201"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}