POST api/entityobjectlistinstances



Request Information

URI Parameters

None.



Body Parameters

CreateEntityObjectListInstanceViewModel
NameDescriptionTypeAdditional information
EntityObjectListID

integer

None.

EntityInstanceID

integer

None.

EntityObjectListAttributeValues

Collection of EntityObjectListAttributeValue

None.

ObjectRelationInfo

ObjectRelationInformation

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityObjectListID": 1,
  "EntityInstanceID": 2,
  "EntityObjectListAttributeValues": [
    {
      "AttributeID": 1,
      "Value": "sample string 2",
      "RecurringDateSpecification": {
        "DayOfRecurrance_Id": 1,
        "NthDayOfRecurrance_Id": 1,
        "RecurringUnit_Id": 1,
        "UnitInterval": 2
      }
    },
    {
      "AttributeID": 1,
      "Value": "sample string 2",
      "RecurringDateSpecification": {
        "DayOfRecurrance_Id": 1,
        "NthDayOfRecurrance_Id": 1,
        "RecurringUnit_Id": 1,
        "UnitInterval": 2
      }
    }
  ],
  "ObjectRelationInfo": {
    "RelatedEntityInstanceID": 1,
    "RelatedObjectAtrributeID": 2
  }
}

application/xml, text/xml

Sample:
<CreateEntityObjectListInstanceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <EntityInstanceID>2</EntityInstanceID>
  <EntityObjectListAttributeValues>
    <EntityObjectListAttributeValue>
      <AttributeID>1</AttributeID>
      <RecurringDateSpecification>
        <DayOfRecurrance_Id>1</DayOfRecurrance_Id>
        <NthDayOfRecurrance_Id>1</NthDayOfRecurrance_Id>
        <RecurringUnit_Id>1</RecurringUnit_Id>
        <UnitInterval>2</UnitInterval>
      </RecurringDateSpecification>
      <Value>sample string 2</Value>
    </EntityObjectListAttributeValue>
    <EntityObjectListAttributeValue>
      <AttributeID>1</AttributeID>
      <RecurringDateSpecification>
        <DayOfRecurrance_Id>1</DayOfRecurrance_Id>
        <NthDayOfRecurrance_Id>1</NthDayOfRecurrance_Id>
        <RecurringUnit_Id>1</RecurringUnit_Id>
        <UnitInterval>2</UnitInterval>
      </RecurringDateSpecification>
      <Value>sample string 2</Value>
    </EntityObjectListAttributeValue>
  </EntityObjectListAttributeValues>
  <EntityObjectListID>1</EntityObjectListID>
  <ObjectRelationInfo>
    <RelatedEntityInstanceID>1</RelatedEntityInstanceID>
    <RelatedObjectAtrributeID>2</RelatedObjectAtrributeID>
  </ObjectRelationInfo>
</CreateEntityObjectListInstanceViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

ReadEntityObjectListInstanceViewModel

NameDescriptionTypeAdditional information
CreationDate

decimal number

None.

CreationDatePretty

string

None.

EntityAttributeValues

Collection of ReadEntityAttributeValueViewModel

None.

EntityCategoryId

integer

None.

EntityInstanceId

integer

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CreationDate": 1.1,
  "CreationDatePretty": "sample string 1",
  "EntityAttributeValues": [
    {
      "EntityAttributeId": 1,
      "EntityAttributeName": "sample string 2",
      "Value": "sample string 3",
      "AdditionalValue": "sample string 4"
    },
    {
      "EntityAttributeId": 1,
      "EntityAttributeName": "sample string 2",
      "Value": "sample string 3",
      "AdditionalValue": "sample string 4"
    }
  ],
  "EntityCategoryId": 2,
  "EntityInstanceId": 3,
  "Id": 4
}

application/xml, text/xml

Sample:
<ReadEntityObjectListInstanceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <CreationDate>1.1</CreationDate>
  <CreationDatePretty>sample string 1</CreationDatePretty>
  <EntityAttributeValues>
    <ReadEntityAttributeValueViewModel>
      <AdditionalValue>sample string 4</AdditionalValue>
      <EntityAttributeId>1</EntityAttributeId>
      <EntityAttributeName>sample string 2</EntityAttributeName>
      <Value>sample string 3</Value>
    </ReadEntityAttributeValueViewModel>
    <ReadEntityAttributeValueViewModel>
      <AdditionalValue>sample string 4</AdditionalValue>
      <EntityAttributeId>1</EntityAttributeId>
      <EntityAttributeName>sample string 2</EntityAttributeName>
      <Value>sample string 3</Value>
    </ReadEntityAttributeValueViewModel>
  </EntityAttributeValues>
  <EntityCategoryId>2</EntityCategoryId>
  <EntityInstanceId>3</EntityInstanceId>
  <Id>4</Id>
</ReadEntityObjectListInstanceViewModel>