| POST | /{Workspace}/TsSend |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
/**
* To filter and return all time series objects modified since a date and time, use the query parameter modifiedsince = X where X = YYYY-MM-DDTHH:MM:SSZ
*/
public static class TsSend
{
public String Workspace = null;
public ArrayList<TimeSeries> Items = null;
public String getWorkspace() { return Workspace; }
public TsSend setWorkspace(String value) { this.Workspace = value; return this; }
public ArrayList<TimeSeries> getItems() { return Items; }
public TsSend setItems(ArrayList<TimeSeries> value) { this.Items = value; return this; }
}
public static class TimeSeries
{
public String Id = null;
public Long Date = null;
public String Uid = null;
public String Oid = null;
public String Tp = null;
public String Data = null;
public String getId() { return Id; }
public TimeSeries setId(String value) { this.Id = value; return this; }
public Long getDate() { return Date; }
public TimeSeries setDate(Long value) { this.Date = value; return this; }
public String getUid() { return Uid; }
public TimeSeries setUid(String value) { this.Uid = value; return this; }
public String getOid() { return Oid; }
public TimeSeries setOid(String value) { this.Oid = value; return this; }
public String getTp() { return Tp; }
public TimeSeries setTp(String value) { this.Tp = value; return this; }
public String getData() { return Data; }
public TimeSeries setData(String value) { this.Data = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/TsSend HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TsSend xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.TimeSeries">
<Items>
<TimeSeries>
<Data>String</Data>
<Date>0</Date>
<Id>String</Id>
<Oid>String</Oid>
<Tp>String</Tp>
<Uid>String</Uid>
</TimeSeries>
</Items>
<Workspace>String</Workspace>
</TsSend>