POST api/entitycriterialists

Adds a new EntityCriteriaList.



Request Information

URI Parameters

None.



Body Parameters

An object representing the EntityCriteriaList to add.

PostEntityCriteriaListViewModel
NameDescriptionTypeAdditional information
Criteria

Collection of EntityCriteriaListCriteriaViewModel

None.

Description

string

None.

EntityCategoryId

integer

None.

EntityDefinitionId

integer

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",
  "EntityCategoryId": 1,
  "EntityDefinitionId": 2
}

application/xml, text/xml

Sample:
<PostEntityCriteriaListViewModel 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>
  <EntityCategoryId>1</EntityCategoryId>
  <EntityDefinitionId>2</EntityDefinitionId>
</PostEntityCriteriaListViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

A ReadEntityCriteriaListViewModel representing the added 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>