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": "6cb9f13c-3f8b-46af-8540-bc80dff8c4a2",
"ParentId": "c08a0376-2555-4280-8547-3c2308093192",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"0873f676-837f-47aa-9e90-36f5c19afdef",
"17214eca-5fa4-4091-8d12-7d0941dc8fb4"
],
"Companies": [
"fb768e3e-c0de-4e2a-bdf3-322ca88381bc",
"91886736-af31-4924-91e2-5582571d3a87"
],
"Groups": [
"8e4fa6d0-45c5-4b8f-994a-1587c316595c",
"51c71b9a-cc62-43ec-ad17-2c509e662b88"
],
"Opportunities": [
"23075a0b-77d3-4cae-b546-1bd2d8cfbfca",
"fd00b751-9ed5-446c-bdd0-ed109769a801"
]
}
}
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:
"c4b97760-f9f7-4a59-8a3d-454613fb20f0"