PUT V2/odata/EntityState({key})

Updates EntityState entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.EntityState
NameDescriptionTypeAdditional information
EntityStateId

Gets or sets unique ID

integer

None.

CompanyId

Gets or sets the reference to Company table

integer

None.

EntityId

Gets or sets ID of the entity on which the state is reported

integer

None.

EntityType

Gets or sets type of the entity on which the state is reported

QicsUnity.Api.Areas.V2.Models.EntityType

None.

DataSource

Gets or sets identifier of the source that reported entity state

string

Required

DataSourceKey

Gets or sets entity identifier in the source system

string

None.

DataSourceDate

Gets or sets entity state change date in the source system

date

None.

IsError

Gets or sets a value indicating whether entity state represents error

boolean

None.

Message

Gets or sets optional entity state message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityStateId": 1,
  "CompanyId": 2,
  "EntityId": 3,
  "EntityType": 0,
  "DataSource": "sample 4",
  "DataSourceKey": "sample 5",
  "DataSourceDate": "2019-07-16T01:44:36.8908199+00:00",
  "IsError": true,
  "Message": "sample 8"
}

application/xml, text/xml

Sample:
<EntityState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <CompanyId>2</CompanyId>
  <DataSource>sample 4</DataSource>
  <DataSourceDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2019-07-16T01:44:36.8908199Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </DataSourceDate>
  <DataSourceKey>sample 5</DataSourceKey>
  <EntityId>3</EntityId>
  <EntityStateId>1</EntityStateId>
  <EntityType>General</EntityType>
  <IsError>true</IsError>
  <Message>sample 8</Message>
</EntityState>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.