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": "38f40049-e4fc-41d7-9e51-766b0a79c452",
"ParentId": "88f471ac-f8a8-4a67-bc37-77865f2f2ff6",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"76fe3512-2003-4d6a-9e8e-3cf4cf8513b8",
"9113b9e4-e103-45af-b26b-021fd3e2bbad"
],
"Companies": [
"b026bfad-8013-4b16-86e2-bb91c3681188",
"1a0c8887-1117-463a-954f-f386deb0a6b9"
],
"Groups": [
"dffd0efc-c8ba-41f1-9e48-ebf10f343759",
"7f8b2ed0-3f00-4d92-86ea-16b45dee37dc"
],
"Opportunities": [
"66c872f4-06ae-42a6-b9b9-37cebfdef1b7",
"0da9d79d-ddd9-4940-8238-88e3d7b9b33d"
]
}
}
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:
"6eb047e7-c5ae-48e7-951e-d5e1b276132c"