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": "44ca9db2-c918-4d8d-8148-eec325c2ad95", "ParentId": "de2be56a-98b6-49d8-86fa-69a72050e091", "Fields": { "sample string 1": {}, "sample string 3": {} }, "LinkedEntities": { "Contacts": [ "eddb05df-d0b7-488f-9423-49fde46bf261", "ea7577a2-0115-479d-8e7e-a9c960f9ad23" ], "Companies": [ "b5bbe194-ad7e-4798-a7f6-d87b9e6c2d67", "71de33ed-b935-4ace-9684-d996b3e45525" ], "Groups": [ "98e5d746-64d8-4346-b792-991aeb1159f1", "3409d300-fda9-43e7-924a-b8952008fe50" ], "Opportunities": [ "3b8af8ae-d0a0-437d-aca0-60862c5018eb", "6db02a79-361d-41bc-b466-814ed1f5d3c2" ] } }
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:
"6d9148a3-2279-41d6-a31d-aef1739c5147"