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": "3b4ce730-1463-4663-a64b-5ed9b16e687b", "ParentId": "1377ea7f-97d8-4af3-ba47-4d96076d4388", "Fields": { "sample string 1": {}, "sample string 3": {} }, "LinkedEntities": { "Contacts": [ "afdb0fa8-6852-4e66-ba2f-cc3146990b0a", "b4000404-8f87-444a-94c3-7ea22f9e4536" ], "Companies": [ "b31a6534-922d-4015-bd23-40d6c896ee1e", "b4fa6ecf-97f0-4720-9bc9-175340db74aa" ], "Groups": [ "79c42535-7489-48ef-8ebb-9e938b7d8cb5", "227439a9-3fea-4726-a993-a3ef0692724b" ], "Opportunities": [ "1a621b9b-7189-471f-8294-f12ea72298a7", "e2945e23-111d-492f-83e3-0ecb15f116fb" ] } }
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:
"5630ed08-b464-410d-b7f1-c612c40216e3"