PUT api/entityinstances/{entityInstanceId}

Updates an existing EntityInstance.



Request Information

URI Parameters

NameDescriptionTypeAdditional information
entityInstanceId

The id of the EntityInstance to update.

integer

Required



Body Parameters

The changes to update to.

Collection of ChangeItem
NameDescriptionTypeAdditional information
ChangeValue

string

None.

AttributeID

integer

None.

ChangeEntityID

integer

None.

RecurringDateSpecification

CreateRecurringDateViewModel

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ChangeValue": "sample string 1",
    "AttributeID": 2,
    "ChangeEntityID": 3,
    "RecurringDateSpecification": {
      "DayOfRecurrance_Id": 1,
      "NthDayOfRecurrance_Id": 1,
      "RecurringUnit_Id": 1,
      "UnitInterval": 2
    }
  },
  {
    "ChangeValue": "sample string 1",
    "AttributeID": 2,
    "ChangeEntityID": 3,
    "RecurringDateSpecification": {
      "DayOfRecurrance_Id": 1,
      "NthDayOfRecurrance_Id": 1,
      "RecurringUnit_Id": 1,
      "UnitInterval": 2
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfChangeItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Shared.Models.ViewModels">
  <ChangeItem>
    <AttributeID>2</AttributeID>
    <ChangeEntityID>3</ChangeEntityID>
    <ChangeValue>sample string 1</ChangeValue>
    <RecurringDateSpecification>
      <DayOfRecurrance_Id>1</DayOfRecurrance_Id>
      <NthDayOfRecurrance_Id>1</NthDayOfRecurrance_Id>
      <RecurringUnit_Id>1</RecurringUnit_Id>
      <UnitInterval>2</UnitInterval>
    </RecurringDateSpecification>
  </ChangeItem>
  <ChangeItem>
    <AttributeID>2</AttributeID>
    <ChangeEntityID>3</ChangeEntityID>
    <ChangeValue>sample string 1</ChangeValue>
    <RecurringDateSpecification>
      <DayOfRecurrance_Id>1</DayOfRecurrance_Id>
      <NthDayOfRecurrance_Id>1</NthDayOfRecurrance_Id>
      <RecurringUnit_Id>1</RecurringUnit_Id>
      <UnitInterval>2</UnitInterval>
    </RecurringDateSpecification>
  </ChangeItem>
</ArrayOfChangeItem>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

A ReadEntityInstanceViewModel representing the updated EntityInstance.

ReadEntityInstanceViewModel

NameDescriptionTypeAdditional information
Comments

Collection of ReadChatMessageViewModel

None.

CreationDate

integer

None.

CreationDatePretty

string

None.

CssIconClass

string

None.

EntityAttributeValues

Collection of ReadEntityAttributeValueViewModel

None.

EntityDefinitionId

integer

None.

EntityObjectListInstances

Collection of ReadEntityObjectListInstanceViewModel

None.

Id

integer

None.

ImageUrls

Collection of string

None.

IsExternal

boolean

None.

IsImported

boolean

None.

LogInstanceOpened

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Comments": [
    {
      "CanBeDeleted": true,
      "CanBeEdited": true,
      "Content": "sample string 3",
      "DateAdded": "sample string 4",
      "DateEdited": "sample string 5",
      "EntityInstance_Id": 1,
      "Id": 6,
      "IsGlobal": true,
      "IsSelf": true,
      "SequenceNr": 9,
      "UserId": "c7cbd274-a877-43f5-90c9-8fb242e965fb",
      "UserName": "sample string 11"
    },
    {
      "CanBeDeleted": true,
      "CanBeEdited": true,
      "Content": "sample string 3",
      "DateAdded": "sample string 4",
      "DateEdited": "sample string 5",
      "EntityInstance_Id": 1,
      "Id": 6,
      "IsGlobal": true,
      "IsSelf": true,
      "SequenceNr": 9,
      "UserId": "c7cbd274-a877-43f5-90c9-8fb242e965fb",
      "UserName": "sample string 11"
    }
  ],
  "CreationDate": 1,
  "CreationDatePretty": "sample string 2",
  "CssIconClass": "sample string 3",
  "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"
    }
  ],
  "EntityDefinitionId": 4,
  "EntityObjectListInstances": [
    {
      "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
    },
    {
      "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
    }
  ],
  "Id": 5,
  "ImageUrls": [
    "sample string 1",
    "sample string 2"
  ],
  "IsExternal": true,
  "IsImported": true,
  "LogInstanceOpened": true
}

application/xml, text/xml

Sample:
<ReadEntityInstanceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Shared.Models.ViewModels">
  <Comments>
    <ReadChatMessageViewModel>
      <CanBeDeleted>true</CanBeDeleted>
      <CanBeEdited>true</CanBeEdited>
      <Content>sample string 3</Content>
      <DateAdded>sample string 4</DateAdded>
      <DateEdited>sample string 5</DateEdited>
      <EntityInstance_Id>1</EntityInstance_Id>
      <Id>6</Id>
      <IsGlobal>true</IsGlobal>
      <IsSelf>true</IsSelf>
      <SequenceNr>9</SequenceNr>
      <UserId>c7cbd274-a877-43f5-90c9-8fb242e965fb</UserId>
      <UserName>sample string 11</UserName>
    </ReadChatMessageViewModel>
    <ReadChatMessageViewModel>
      <CanBeDeleted>true</CanBeDeleted>
      <CanBeEdited>true</CanBeEdited>
      <Content>sample string 3</Content>
      <DateAdded>sample string 4</DateAdded>
      <DateEdited>sample string 5</DateEdited>
      <EntityInstance_Id>1</EntityInstance_Id>
      <Id>6</Id>
      <IsGlobal>true</IsGlobal>
      <IsSelf>true</IsSelf>
      <SequenceNr>9</SequenceNr>
      <UserId>c7cbd274-a877-43f5-90c9-8fb242e965fb</UserId>
      <UserName>sample string 11</UserName>
    </ReadChatMessageViewModel>
  </Comments>
  <CreationDate>1</CreationDate>
  <CreationDatePretty>sample string 2</CreationDatePretty>
  <CssIconClass>sample string 3</CssIconClass>
  <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>
  <EntityDefinitionId>4</EntityDefinitionId>
  <EntityObjectListInstances>
    <ReadEntityObjectListInstanceViewModel>
      <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>
    <ReadEntityObjectListInstanceViewModel>
      <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>
  </EntityObjectListInstances>
  <Id>5</Id>
  <ImageUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ImageUrls>
  <IsExternal>true</IsExternal>
  <IsImported>true</IsImported>
  <LogInstanceOpened>true</LogInstanceOpened>
</ReadEntityInstanceViewModel>