Update Condition Record Item Value

Since version 14.2

The ID can be utilized in the header of the request body. When using the loaddata endpoint for CRCIX (e.g., loaddata/CRCI4), users can identify records using the following methods:

  1. Key values along with validity range values (the process remains unchanged).

  2. Record ID (this is a new feature).

Note that:

  • When using key values in conjunction with validity range values, the record ID must not be included in the request.

  • Conversely, when using the record ID, key values and validity range values must not be included in the request.

Only the items specified in the request will be updated, while all other attributes will remain unchanged. This behavior mirrors that of the update endpoint.

Example

In the example below, we will search for the Condition Record Item with an ID equal to 136, and we will update the value of attribute2 to BUS VAL.

URL

HTTP Method

POST

/loaddata/CRCI4

Request Body

JSON
{
  "data": {
    "header": [
      "id",
      "attribute2"
    ],
    "data": [
      [
        136,
        "BUS VAL"
      ]
    ]
  }
}

Loading More Items

When loading more than one item, it is necessary to enhance the request with additional options information that contains "joinFields": ["id"].

URL

HTTP Method

POST

/loaddata/CRCI4

Request Body

JSON
{
  "data": {
    "header": [
      "id",
      "attribute2"
    ],
    "data": [
      [
        4,
        "Change 1.1"
      ], [
        136,
        "Change 2.1"
      ]
    ],
    "options": {
        "joinFields": ["id"]
    }
  }
}