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": "12c8f9c8-5435-4469-b8e7-85fdc207856d",
"ParentId": "72ccc1bd-365a-4b07-80d6-8c8d47a15b36",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"bd8b3bc8-955b-4e42-bb54-b5abd071d070",
"da8e789f-c984-4729-9c62-e3b0820a674d"
],
"Companies": [
"142fe900-84f4-45e7-8422-bd61788defac",
"3ba47a1a-77eb-4724-af40-3d60565dfd4f"
],
"Groups": [
"d1f81737-a5dc-4078-ac96-d736ef40e854",
"4a4d774d-b7ea-4389-accd-bf91e8b31236"
],
"Opportunities": [
"db71a3ac-0db6-44e9-be27-3e02ef3e29cc",
"3137e015-e12b-42f4-ac3e-1aabea0a3b85"
]
}
}
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:
"8c2b7794-65d8-41bb-a084-659e1ebd4c1a"