i

Please enable JavaScript to view this site.

Documentation 8.3

The POST method is used to create a new resource to a collection.

 

It uses the HTTP POST verb.

The url only contains the name of the collection in which a new resource is created.

The values of the new resource attributes are specified in the request body, that is, the configuration declares a "body" clause.

The response body contains the information of the resource identifier created in the form:

name: Name of the resource identifier attribute (idObjectName).

value: Value of the resource identifier attribute (idObjectValue).

dtLastUpdate: Resource creation date.

 

Example: Create an  "Account" form instance.

 

    POST /forms/CRM_ACCOUNT/instances

 

The request body ("body" clause) contains:

 

 

{

 "cbIsPartner": "false",

"cdInstanceOwner": "Guillermo Diaz",

"CdStatus": "Active",

"cdType": "1",

"DsCompany": "Tenaris",

"dsDescription": "",

"dsHolding": "TECHINT",

"dsIndustry": "Manufactures",

"dsOwner": "Guillermo Diaz",

"dsSource": "Referred",

"flLogo": "url",

"idPartnerCompany": "",

"nuIdentifNumber": "30-00000000-5",

"qtAnnualRev": "1500000000",

 "qtEmployee": "1000",

"qtScore": "90",

"lsAddress": [

   {

    "dsAddress": "Della Paolera 333",

    "dsCity": "buenos aires",

    "dsCountry": "argentina",

    "dsState": "buenos aires",

    "tpAddress": "1"

   }

 ],

"webSiteLine": [

   {

    "dsWebsite": "www.tenaris.com",

    "tpWebsite": "1"

   }

 ],

 "phoneLine": [

   {

    "tpPhone": "1",

    "nrPhone": "01137489236"

   }

 ],

"eMailLine": [

   {

    "tpEmail": "1",

    "dsEmail": "info@tenaris.com"

   }

 ]

}

Send us your comment
Share on Twitter Share on Linkedin Send by Email Print