POST api/Opportunities
Create a new Opportunity Record.
Request Information
URI Parameters
None.
Body Parameters
The Opportunity record data must be passed in through the body of the request in Json format. Set Content-Type header to application/json
MutableEntityExtendedName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
ParentId |
This field will only include data when working with Group records. |
globally unique identifier |
None. |
Fields | Dictionary of string [key] and Object [value] |
None. |
|
LinkedEntities | LinkedEntities |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "868f9034-37e0-4ae3-9b16-3fd58b02fb77", "ParentId": "4203ad21-b7d1-4706-bbf3-cf1d1e6c8f90", "Fields": { "sample string 1": {}, "sample string 3": {} }, "LinkedEntities": { "Contacts": [ "43c7434f-ec80-4e26-8116-435cf83424cf", "0b03098f-5564-4854-8b02-50ee19b994e2" ], "Companies": [ "7aef82d9-d3a1-40bc-8db0-8ed3b0181f9b", "c7efb179-43c5-4e28-9303-baf4708518c5" ], "Groups": [ "07d7bea4-3a54-4ecb-8359-b57832d921e4", "777b56a5-b929-41ad-8dfc-e81bb533264e" ], "Opportunities": [ "36536b95-cbe0-47ad-aa8a-3f4c486e18b5", "5aff7990-6331-4190-a558-c9b7dff121e9" ] } }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
This endpoint returns the GUID of the Group record once it is created.
globally unique identifierResponse Formats
application/json, text/json
Sample:
"65aeedd6-9827-4a56-a396-dd39ec1a77e5"