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": "273f80f1-e1ec-48e4-944a-9be60e220efe",
"ParentId": "e94dd0ac-0e39-4ebc-ad53-9edc69ca4ea9",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"29a7df9a-eeb6-4a75-a441-a2adbeba683b",
"35a83e14-5945-46eb-9b9a-050c63701fcb"
],
"Companies": [
"6e0d61a8-59f4-4bd7-ab16-cfaf67667a10",
"cedef3ea-5f59-418a-94c5-c44d981f42d6"
],
"Groups": [
"45de02b7-4ce1-4b60-8c3e-a65f95406c99",
"f352d126-bb59-4eea-9c65-b9f2012b563b"
],
"Opportunities": [
"4c2ce2ac-a010-49e0-8017-b3f4a8a25be6",
"40d49503-dac5-46c0-a5c9-2bd50791bda5"
]
}
}
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:
"41a5b3b4-5474-48e3-b4cf-68d37b9851ea"