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": "20db5056-b6ff-4a74-b6fc-81caccad9ff8", "ParentId": "58643747-5a66-40cd-a0ba-e0cfdb5be2c0", "Fields": { "sample string 1": {}, "sample string 3": {} }, "LinkedEntities": { "Contacts": [ "c9019d24-a397-4556-bc16-d2f283554471", "d65768dc-bc65-4c85-a374-88d35dff54c4" ], "Companies": [ "1bc0c523-2794-4019-83b4-568f119081e7", "171da774-c22e-4861-a5ac-3ed204c0410e" ], "Groups": [ "42f1f69d-c248-46fe-9349-5a850477a7c5", "5e6fddf8-8a43-436b-a730-fb197098430d" ], "Opportunities": [ "97b978db-2ac9-4aff-8936-92d1ea088843", "cd24717e-bd44-4dac-8a73-0b655c37afe1" ] } }
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:
"1a527538-4b09-4d2a-85f0-d34da3515ad5"