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": "fa728e04-7673-4ba0-be97-cdd55a9a3ed6",
"ParentId": "af27e5fd-dccd-40a9-8de3-16a8b2d854a5",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"888eef66-5819-49fc-bd9d-c5f7171f9d34",
"9894e35c-a3d6-43fe-addf-c7d6a2fad120"
],
"Companies": [
"717f3108-5609-4030-8c25-e4581239d547",
"69a6bf05-3857-43ed-ba91-f1baf18d5d5a"
],
"Groups": [
"d0873500-aaf5-41f3-a443-d304de5d7ee7",
"6b9a57d8-dc9b-4ca9-b3dc-818c7e7218ee"
],
"Opportunities": [
"c53fb187-de7d-4f6a-9fac-d97ca22c4dd7",
"0ecabb36-d793-485e-bd8c-f0fccb2a4dc8"
]
}
}
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:
"226d0c53-9b63-43c7-b0ec-62863d844775"