BazeField Services

<back to all web services

InsertObjectPointValue

Domain Data API
Requires Authentication
The following routes are available for this service:
GET, POST/api/objects/points/value/insertInsert single data point. Timestamps must be UTC.
InsertObjectPointValue Parameters:
NameParameterData TypeRequiredDescription
ClientRequestHandlebodystringNo
ObjectPointValue Parameters:
NameParameterData TypeRequiredDescription
PointNameformstringNo
ObjectIdformstringNo
TimeSeriesValue Parameters:
NameParameterData TypeRequiredDescription
tformlongNo
qformintNo
vformObjectNo
t_localformDateTimeOffset?No
DomainPointValuesInsertResponse Parameters:
NameParameterData TypeRequiredDescription
InsertedformintNo
SnapshotformintNo
PublishedformintNo
BazefieldResponse Parameters:
NameParameterData TypeRequiredDescription
ReplyInfoformReplyInfoNo
ReplyInfo Parameters:
NameParameterData TypeRequiredDescription
RcvTimeformdoubleNo
ReplyTimeformdoubleNo
ClientRequestHandleformstringNo
ErrorformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/objects/points/value/insert HTTP/1.1 
Host: mdn.bazefield.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InsertObjectPointValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.WebService.Request">
  <q xmlns="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices">0</q>
  <t xmlns="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices">0</t>
  <t_local xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices">
    <d2p1:DateTime>0001-01-01T00:00:00Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </t_local>
  <v xmlns="http://schemas.datacontract.org/2004/07/BazeField.Historian.DataServices" />
  <ObjectId xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.Entity">String</ObjectId>
  <PointName xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.Entity">String</PointName>
  <ClientRequestHandle>String</ClientRequestHandle>
</InsertObjectPointValue>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DomainPointValuesInsertResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Domain.Data.WebService.Response">
  <ReplyInfo xmlns="http://schemas.datacontract.org/2004/07/Bazefield.WebService.Common">
    <ClientRequestHandle>String</ClientRequestHandle>
    <Error>String</Error>
    <RcvTime>0</RcvTime>
    <ReplyTime>0</ReplyTime>
  </ReplyInfo>
  <Inserted>0</Inserted>
  <Published>0</Published>
  <Snapshot>0</Snapshot>
</DomainPointValuesInsertResponse>