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": "5652c3bc-80f5-440d-90f6-05901a0ebbbc",
"ParentId": "988d4b1e-8900-4d28-a7c3-e45df724b9cb",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"108b9875-96b6-44b5-9ea7-95276bd68af6",
"32c05f12-6bc3-4403-8352-a85a14fecec7"
],
"Companies": [
"8ddf0234-be8d-4b44-8eb2-5993484c76a1",
"ea99033b-6de5-44f2-90db-e28ea4203d2a"
],
"Groups": [
"7eb7d5bf-da45-4ade-b3e0-f39741a40846",
"4b0e21ee-4a54-4bc6-a159-044daa860fbb"
],
"Opportunities": [
"16b25a3f-e31c-4e27-a64a-7edb512cf870",
"92254805-3bca-48ac-b071-7f11fd9f5b2a"
]
}
}
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:
"0db769eb-934e-481e-97ef-308fa09d0208"