BazeField Services

<back to all web services

ObjectInsertRequest

Core API
Requires Authentication
The following routes are available for this service:
POST/api/objects/insertCreates a new objectPost enforced by GET request becomming too long, so implemented as POST as well
ObjectInsertRequest Parameters:
NameParameterData TypeRequiredDescription
ParentIdquerystringYesId of parent under which the new object will be inserted.
CategoryqueryintYescategory as in wind being 21, solar being 22, etc.
TypequeryintYesType as in wind turbine being 200, turbine string being 243, etc.
DomainModelquerystringNoThe name or id the domain model for this object
AttributesbodyDictionary<string, string>No
ClientRequestHandlequerystringNo
ObjectInsertResponse Parameters:
NameParameterData TypeRequiredDescription
dataformDomainObjectNo
BazefieldResponse Parameters:
NameParameterData TypeRequiredDescription
ReplyInfoformReplyInfoNo
ReplyInfo Parameters:
NameParameterData TypeRequiredDescription
RcvTimeformdoubleNo
ReplyTimeformdoubleNo
ClientRequestHandleformstringNo
ErrorformstringNo
DomainObject Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformstringNo
mdmidformstringNo
DomainObjectAttributes Parameters:
NameParameterData TypeRequiredDescription
AttributesformDictionary<string, string>No

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"parentId":"String","category":0,"type":0,"domainModel":"String","attributes":{"String":"String"},"clientRequestHandle":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"objectId":"String","mdmid":"String","attributes":{"String":"String"}},"replyInfo":{"rcvTime":0,"replyTime":0,"clientRequestHandle":"String","error":"String"}}