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
MutableEntityExtended| Name | 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": "79fbf822-3794-4bb7-a071-6cf96d156a5d",
"ParentId": "94b49e03-7590-4714-bb7c-be1f18047e1d",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"990ca7a7-84ba-45d6-b31f-215a6863ffe8",
"02c2ad47-b5c5-44f4-b378-87217b9c3255"
],
"Companies": [
"d6a8b18e-b39e-4433-a0b8-7310796df03e",
"94c04a7a-27b2-45e6-ae8f-ffc08497ee7e"
],
"Groups": [
"621fb17c-04af-4d22-be69-e5141ff87dad",
"c1a81f0c-4eeb-4a72-aa64-9908255311ee"
],
"Opportunities": [
"34787ce7-b3f6-41c5-a527-2ee82a2e20e4",
"cc1f8ce6-3467-430b-87b3-d3b7cf9a5118"
]
}
}
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:
"78a77203-acf9-499d-9518-da848c38ca5d"