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": "057c5feb-c9f2-4097-a3cc-4b937b0c56e9",
"ParentId": "8e09c148-379a-4a08-8e94-d5cf3a0d5424",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"a37938c1-abd9-4dfa-adb3-e2ba9a512c2b",
"968e7e71-3a8b-4de3-ab21-5c44e2f8b42d"
],
"Companies": [
"3fbfa71e-6613-4afe-b67e-1dc6fb91177e",
"5efd0160-6577-41ca-a6d0-6bfae64c830a"
],
"Groups": [
"527ec733-20c7-4363-bd23-22cd0603f80b",
"294195a1-a3fb-45bc-bf04-b07775cc25dc"
],
"Opportunities": [
"40851975-a191-4c19-815b-d49f30369135",
"e3d41859-d2e2-4908-8278-a6be5be4346a"
]
}
}
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:
"41fb21e7-6960-4a9d-aaad-8dfbe2359511"