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": "0a112e7e-4d89-4b36-8f69-472bf9d01eef",
"ParentId": "844a9018-b6bd-4c1d-ae54-f72301149712",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"31874e46-61ec-4357-8b0e-3885e3f7ec97",
"e23cbba5-71b9-4b66-8741-0d42330b86ad"
],
"Companies": [
"7ff98555-9baa-4099-bca4-9e793052820c",
"77b84b71-5fde-43c1-bb70-408b14b34326"
],
"Groups": [
"e9bf6b14-18c3-4129-a546-c6baec5ee6ae",
"7f7480b7-fc64-4e64-8d51-e3520eee8b65"
],
"Opportunities": [
"23bf01e9-e3c7-4d40-8fce-d562f45d056d",
"0a8f7031-c98c-4df2-ba10-86aaf256b431"
]
}
}
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:
"004cc614-2845-4f36-bad1-7497489e6838"