PUT api/dataitems/{id}

Updates a DataItem entity.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the data item to update.

globally unique identifier

Required

Body Parameters

The data item to update with.

DataItemDto
NameDescriptionTypeAdditional information
Data

string

None.

ByteCount

integer

None.

DataItemProperties

Collection of DataItemPropertyDto

None.

ViewPermissionGroupId

globally unique identifier

None.

EditPermissionGroupId

globally unique identifier

None.

DeletePermissionGroupId

globally unique identifier

None.

CanEdit

boolean

None.

CanDelete

boolean

None.

Id

globally unique identifier

None.

OwnerUserId

globally unique identifier

Required

CreationDate

date

Required

DataListId

globally unique identifier

Required

DataListName

string

None.

StatusId

globally unique identifier

None.

StatusName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Data": "sample string 1",
  "ByteCount": 2,
  "DataItemProperties": [
    {
      "Id": "b3defa82-91dc-4e36-93a0-f3ebf75db546",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2026-01-07T07:22:25.9842009+00:00",
      "DataItemId": "10a50bf9-0961-4feb-a0df-3ada884a30bf"
    },
    {
      "Id": "b3defa82-91dc-4e36-93a0-f3ebf75db546",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2026-01-07T07:22:25.9842009+00:00",
      "DataItemId": "10a50bf9-0961-4feb-a0df-3ada884a30bf"
    }
  ],
  "ViewPermissionGroupId": "9c6f6de4-45c1-49db-a1a6-165bf45e8e99",
  "EditPermissionGroupId": "b04fd158-aaaf-4f16-9769-8801ba3103f0",
  "DeletePermissionGroupId": "86a7bda5-1c9c-40ca-8108-afd6e07296c7",
  "CanEdit": true,
  "CanDelete": true,
  "Id": "e422ccc4-b826-4cf4-a243-969e0cfea665",
  "OwnerUserId": "3e190707-6b0c-4611-be07-683415f98be3",
  "CreationDate": "2026-01-07T07:22:25.9842009+00:00",
  "DataListId": "d30db98f-219f-4952-a3f3-73db867f38e7",
  "DataListName": "sample string 9",
  "StatusId": "d961de50-d1d4-41bc-97b8-e49dfb508bed",
  "StatusName": "sample string 11"
}

application/xml, text/xml

Sample:
<DataItemDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.DataManagement.Models">
  <CreationDate>2026-01-07T07:22:25.9842009+00:00</CreationDate>
  <DataListId>d30db98f-219f-4952-a3f3-73db867f38e7</DataListId>
  <DataListName>sample string 9</DataListName>
  <Id>e422ccc4-b826-4cf4-a243-969e0cfea665</Id>
  <OwnerUserId>3e190707-6b0c-4611-be07-683415f98be3</OwnerUserId>
  <StatusId>d961de50-d1d4-41bc-97b8-e49dfb508bed</StatusId>
  <StatusName>sample string 11</StatusName>
  <ByteCount>2</ByteCount>
  <CanDelete>true</CanDelete>
  <CanEdit>true</CanEdit>
  <Data>sample string 1</Data>
  <DataItemProperties>
    <DataItemPropertyDto>
      <CreationDate>2026-01-07T07:22:25.9842009+00:00</CreationDate>
      <DataItemId>10a50bf9-0961-4feb-a0df-3ada884a30bf</DataItemId>
      <Id>b3defa82-91dc-4e36-93a0-f3ebf75db546</Id>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </DataItemPropertyDto>
    <DataItemPropertyDto>
      <CreationDate>2026-01-07T07:22:25.9842009+00:00</CreationDate>
      <DataItemId>10a50bf9-0961-4feb-a0df-3ada884a30bf</DataItemId>
      <Id>b3defa82-91dc-4e36-93a0-f3ebf75db546</Id>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </DataItemPropertyDto>
  </DataItemProperties>
  <DeletePermissionGroupId>86a7bda5-1c9c-40ca-8108-afd6e07296c7</DeletePermissionGroupId>
  <EditPermissionGroupId>b04fd158-aaaf-4f16-9769-8801ba3103f0</EditPermissionGroupId>
  <ViewPermissionGroupId>9c6f6de4-45c1-49db-a1a6-165bf45e8e99</ViewPermissionGroupId>
</DataItemDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.