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": "eb195d55-31cf-40b8-a57e-79800c8dc61b",
"ParentId": "d260ac75-e148-441c-90d9-ad1ae80bfc6d",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"697ea14b-f055-4ceb-bb73-27b660ee2c17",
"b47e6ac0-a4e7-44d1-bed2-cbd72ce3fd4d"
],
"Companies": [
"3c6e7a44-4cf9-496e-95b9-34eb205ecb34",
"9eb1272b-df97-470e-a4aa-6f8abfded973"
],
"Groups": [
"a719e95c-3e66-460b-9e9d-42ee3f09d7de",
"8b190f18-93c2-432d-847a-92285eb975c4"
],
"Opportunities": [
"6cf4eaa0-a940-48c7-84e3-121db25ba41c",
"2f54de8d-567b-4b40-8aa9-520c7bdf42c4"
]
}
}
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:
"4d5cdec3-70de-44fa-85b1-13e19403b63b"