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": "e41c2e33-df6a-4c6b-a56f-fb1bd7b10302",
"ParentId": "81f4f40f-19e1-4ee5-93ac-9df338548ce8",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"a012e29a-110b-4666-8d87-a55ecf290719",
"77a4e918-6c05-4d5f-bab0-959754337600"
],
"Companies": [
"8b96dcc5-a521-49ce-a6e8-da44734cd0e6",
"30df2f71-febb-4e6c-8a9e-e62dcc8dfc9a"
],
"Groups": [
"c9e96ff7-0327-478a-93a5-d783b506a142",
"aae4fb0f-f3c7-461b-9f43-f2044707e947"
],
"Opportunities": [
"7fd42efb-df19-462f-8445-5b702b293bbb",
"de99ae82-bb89-4d01-afa0-712087058cdd"
]
}
}
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:
"6b3083c8-01a7-4ac9-b924-dfea43f5a56e"