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": "7a2fb375-720c-45f3-bf2a-a4dd7ade2c94",
"ParentId": "b2d80788-ce57-4812-99bd-bfa0384341e3",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"e295715b-4600-48a6-8a6d-5360ecc9de62",
"9da0d969-f2f9-45c7-b509-bcd61e169fc7"
],
"Companies": [
"4e6a0ed2-9703-4220-a42a-97ded3d089f9",
"9f886267-4164-4c47-9047-0c40e968aae2"
],
"Groups": [
"1bca38a4-51c3-4f62-884d-5a5c4060be17",
"d60950f0-0f0d-4047-aa95-a6d242a56fa6"
],
"Opportunities": [
"157e65ae-da9e-4bd8-9ed3-47b6e2ed440a",
"fc11eed6-855d-414b-8c7b-0ea66e523ce0"
]
}
}
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:
"5da3d0a8-fefe-4563-a5d1-fca4f7fe0772"