POST api/IndexedTagValues/CreateValue

Create tag Value by tag ID

Request Information

URI Parameters

None.

Body Parameters

Tag value data

ValueData
NameDescriptionTypeAdditional information
Tag

Used by editing or deleting of value using Catalog Tag ID

integer

None.

Guid

Used by editing or deleting of value using Catalog Tag Guid

string

None.

Parent

Parent value's ID.

integer

None.

Value

Value

string

None.

Id

Value Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "tag": 1,
  "guid": "sample string 2",
  "parent": 3,
  "value": "sample string 4",
  "id": 5
}

application/xml, text/xml

Sample:
<ValueData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <Guid>sample string 2</Guid>
  <Id>5</Id>
  <Parent>3</Parent>
  <Tag>1</Tag>
  <Value>sample string 4</Value>
</ValueData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ValueData'.

Response Information

Resource Description

ObjResultOfIndexedTagValue[]
NameDescriptionTypeAdditional information
Data

Collection of IndexedTagValue

None.

Error

Error description if the operation failed

string

None.

Success

Operation result

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "text": "sample string 1",
      "ancestors": "sample string 2",
      "id": 3,
      "isSelected": true,
      "isDefaultValue": true,
      "hasTagLinks": true,
      "tagId": 7,
      "isApproved": true,
      "rawValue": {},
      "tagName": "sample string 10",
      "itemsCount": 11,
      "location": "sample string 12",
      "hasChilds": true,
      "count": 14
    },
    {
      "text": "sample string 1",
      "ancestors": "sample string 2",
      "id": 3,
      "isSelected": true,
      "isDefaultValue": true,
      "hasTagLinks": true,
      "tagId": 7,
      "isApproved": true,
      "rawValue": {},
      "tagName": "sample string 10",
      "itemsCount": 11,
      "location": "sample string 12",
      "hasChilds": true,
      "count": 14
    }
  ],
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

application/xml, text/xml

Sample:
<ObjResultOfArrayOfIndexedTagValue21UbPorx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>3</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 1</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DAMClient">
    <d2p1:IndexedTagValue>
      <d2p1:Ancestors>sample string 2</d2p1:Ancestors>
      <d2p1:Count>14</d2p1:Count>
      <d2p1:HasChilds>true</d2p1:HasChilds>
      <d2p1:HasTagLinks>true</d2p1:HasTagLinks>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:IsApproved>true</d2p1:IsApproved>
      <d2p1:IsDefaultValue>true</d2p1:IsDefaultValue>
      <d2p1:IsSelected>true</d2p1:IsSelected>
      <d2p1:ItemsCount>11</d2p1:ItemsCount>
      <d2p1:Location>sample string 12</d2p1:Location>
      <d2p1:RawValue />
      <d2p1:TagId>7</d2p1:TagId>
      <d2p1:TagName>sample string 10</d2p1:TagName>
      <d2p1:Text>sample string 1</d2p1:Text>
    </d2p1:IndexedTagValue>
    <d2p1:IndexedTagValue>
      <d2p1:Ancestors>sample string 2</d2p1:Ancestors>
      <d2p1:Count>14</d2p1:Count>
      <d2p1:HasChilds>true</d2p1:HasChilds>
      <d2p1:HasTagLinks>true</d2p1:HasTagLinks>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:IsApproved>true</d2p1:IsApproved>
      <d2p1:IsDefaultValue>true</d2p1:IsDefaultValue>
      <d2p1:IsSelected>true</d2p1:IsSelected>
      <d2p1:ItemsCount>11</d2p1:ItemsCount>
      <d2p1:Location>sample string 12</d2p1:Location>
      <d2p1:RawValue />
      <d2p1:TagId>7</d2p1:TagId>
      <d2p1:TagName>sample string 10</d2p1:TagName>
      <d2p1:Text>sample string 1</d2p1:Text>
    </d2p1:IndexedTagValue>
  </Data>
</ObjResultOfArrayOfIndexedTagValue21UbPorx>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

data

Parameters of editing or deleting of Catalog tag value

Property Description
Tag (Int64)
            Used by editing or deleting of value using Catalog Tag ID
            
Guid (String)
             Used by editing or deleting of value using Catalog Tag Guid
            
Parent (Int64)
            Parent value's ID.
            
Value (String)
            Value
            
Id (Int64)
            Value Id
            
}