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": "cc6f4eb5-b9e7-4a05-af37-e9af58ce16ea",
"ParentId": "1cafd1bd-784a-45bc-94e6-f3abe092973b",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"fa2e3291-dd1e-4e65-9d17-e835ab4a6999",
"10075248-b3b4-40f6-aaaf-9e43424cdc5c"
],
"Companies": [
"b8b1845a-549d-404e-ba60-fbf26a139770",
"d1947438-501a-40c6-a919-4d0ece58668e"
],
"Groups": [
"a297a6ec-ae35-4f69-93fc-cd37814852cf",
"e5015bcd-86bf-47e8-9006-f9effd3e7042"
],
"Opportunities": [
"f7e84f9c-fe07-4579-8c4d-0968fcbba20f",
"d8a71cc3-f9ac-4e27-877f-11d381e37bc8"
]
}
}
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:
"8e8901bf-9f46-4388-8581-d224635a1604"