PUT api/entitycriterialists/{entityCriteriaListId}

Updates a specific EntityCriteriaList.



Request Information

URI Parameters

NameDescriptionTypeAdditional information
entityCriteriaListId

The id of the EntityCriteriaList to update.

integer

Required



Body Parameters

A model describing the state to updtae the EntityCriteriaList to.

PutEntityCriteriaListViewModel
NameDescriptionTypeAdditional information
Criteria

Collection of EntityCriteriaListCriteriaViewModel

None.

Description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Criteria": [
    {
      "CompareValue": "sample string 1",
      "EntityAttributeId": 2,
      "IsDateOfToday": true,
      "DateOfTodayDayOffset": 4,
      "ModifierId": 5,
      "RecursionPath": [
        1,
        2
      ]
    },
    {
      "CompareValue": "sample string 1",
      "EntityAttributeId": 2,
      "IsDateOfToday": true,
      "DateOfTodayDayOffset": 4,
      "ModifierId": 5,
      "RecursionPath": [
        1,
        2
      ]
    }
  ],
  "Description": "sample string 1"
}

application/xml, text/xml

Sample:
<PutEntityCriteriaListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <Criteria>
    <EntityCriteriaListCriteriaViewModel>
      <CompareValue>sample string 1</CompareValue>
      <DateOfTodayDayOffset>4</DateOfTodayDayOffset>
      <EntityAttributeId>2</EntityAttributeId>
      <IsDateOfToday>true</IsDateOfToday>
      <ModifierId>5</ModifierId>
      <RecursionPath xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </RecursionPath>
    </EntityCriteriaListCriteriaViewModel>
    <EntityCriteriaListCriteriaViewModel>
      <CompareValue>sample string 1</CompareValue>
      <DateOfTodayDayOffset>4</DateOfTodayDayOffset>
      <EntityAttributeId>2</EntityAttributeId>
      <IsDateOfToday>true</IsDateOfToday>
      <ModifierId>5</ModifierId>
      <RecursionPath xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </RecursionPath>
    </EntityCriteriaListCriteriaViewModel>
  </Criteria>
  <Description>sample string 1</Description>
</PutEntityCriteriaListViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

A ReadEntityCriteriaListViewModel, representing the updated EntityCriteriaList.

ReadEntityCriteriaListViewModel

NameDescriptionTypeAdditional information
Id

integer

None.

EntityDefinitionId

integer

None.

EntityCategoryId

integer

None.

Name

string

None.

Criteria

Collection of EntityCriteriaListCriteriaViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EntityDefinitionId": 2,
  "EntityCategoryId": 1,
  "Name": "sample string 3",
  "Criteria": [
    {
      "CompareValue": "sample string 1",
      "EntityAttributeId": 2,
      "IsDateOfToday": true,
      "DateOfTodayDayOffset": 4,
      "ModifierId": 5,
      "RecursionPath": [
        1,
        2
      ]
    },
    {
      "CompareValue": "sample string 1",
      "EntityAttributeId": 2,
      "IsDateOfToday": true,
      "DateOfTodayDayOffset": 4,
      "ModifierId": 5,
      "RecursionPath": [
        1,
        2
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ReadEntityCriteriaListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <Criteria>
    <EntityCriteriaListCriteriaViewModel>
      <CompareValue>sample string 1</CompareValue>
      <DateOfTodayDayOffset>4</DateOfTodayDayOffset>
      <EntityAttributeId>2</EntityAttributeId>
      <IsDateOfToday>true</IsDateOfToday>
      <ModifierId>5</ModifierId>
      <RecursionPath xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </RecursionPath>
    </EntityCriteriaListCriteriaViewModel>
    <EntityCriteriaListCriteriaViewModel>
      <CompareValue>sample string 1</CompareValue>
      <DateOfTodayDayOffset>4</DateOfTodayDayOffset>
      <EntityAttributeId>2</EntityAttributeId>
      <IsDateOfToday>true</IsDateOfToday>
      <ModifierId>5</ModifierId>
      <RecursionPath xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </RecursionPath>
    </EntityCriteriaListCriteriaViewModel>
  </Criteria>
  <EntityCategoryId>1</EntityCategoryId>
  <EntityDefinitionId>2</EntityDefinitionId>
  <Id>1</Id>
  <Name>sample string 3</Name>
</ReadEntityCriteriaListViewModel>