PUT api/textitems/{id}

Updates a text item.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the text item to update.

globally unique identifier

Required

Body Parameters

The model of the text item to update with.

TextItemDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

String length: inclusive between 0 and 250

CreationDate

date

None.

CreatedByUserId

globally unique identifier

None.

TenantId

globally unique identifier

None.

Description

string

None.

Content

string

None.

ExpiryDateUtc

date

None.

ViewPermissionGroupId

globally unique identifier

None.

EditPermissionGroupId

globally unique identifier

None.

DeletePermissionGroupId

globally unique identifier

None.

CanEdit

boolean

None.

CanDelete

boolean

None.

FolderId

globally unique identifier

None.

IsArchived

boolean

None.

IsDeleted

boolean

None.

TextItemGroupId

globally unique identifier

None.

ComplianceReference

string

None.

Version

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "Id": "21373990-03d7-439a-9710-16c1fd24d6bd",
  "Name": "sample string 2",
  "CreationDate": "2025-12-10T03:48:56.7028702+00:00",
  "CreatedByUserId": "53c859f4-c1ba-414a-83fb-c903a1dc6e7e",
  "TenantId": "f624600b-0ee3-442a-ad69-42773602b5f9",
  "Description": "sample string 6",
  "Content": "sample string 7",
  "ExpiryDateUtc": "2025-12-10T03:48:56.7028702+00:00",
  "ViewPermissionGroupId": "f71d117a-05ff-4bad-a419-462624271705",
  "EditPermissionGroupId": "2593f405-5d68-412d-bad9-1e0ca9f8444b",
  "DeletePermissionGroupId": "ac57a0e9-c4e0-404d-b704-2360cd462e33",
  "CanEdit": true,
  "CanDelete": true,
  "FolderId": "92fca62b-c316-4ddc-a89a-bb32ab0a6977",
  "IsArchived": true,
  "IsDeleted": true,
  "TextItemGroupId": "b606899c-3f88-44c7-a591-24fedfd39fd8",
  "ComplianceReference": "sample string 13",
  "Version": "sample string 14"
}

application/xml, text/xml

Sample:
<TextItemDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Content.Models">
  <CanDelete>true</CanDelete>
  <CanEdit>true</CanEdit>
  <ComplianceReference>sample string 13</ComplianceReference>
  <Content>sample string 7</Content>
  <CreatedByUserId>53c859f4-c1ba-414a-83fb-c903a1dc6e7e</CreatedByUserId>
  <CreationDate>2025-12-10T03:48:56.7028702+00:00</CreationDate>
  <DeletePermissionGroupId>ac57a0e9-c4e0-404d-b704-2360cd462e33</DeletePermissionGroupId>
  <Description>sample string 6</Description>
  <EditPermissionGroupId>2593f405-5d68-412d-bad9-1e0ca9f8444b</EditPermissionGroupId>
  <ExpiryDateUtc>2025-12-10T03:48:56.7028702+00:00</ExpiryDateUtc>
  <FolderId>92fca62b-c316-4ddc-a89a-bb32ab0a6977</FolderId>
  <Id>21373990-03d7-439a-9710-16c1fd24d6bd</Id>
  <IsArchived>true</IsArchived>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 2</Name>
  <TenantId>f624600b-0ee3-442a-ad69-42773602b5f9</TenantId>
  <TextItemGroupId>b606899c-3f88-44c7-a591-24fedfd39fd8</TextItemGroupId>
  <Version>sample string 14</Version>
  <ViewPermissionGroupId>f71d117a-05ff-4bad-a419-462624271705</ViewPermissionGroupId>
</TextItemDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.