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": "55151967-f529-40f2-8487-c71dba0c8a51",
"ParentId": "ec228731-203d-4c69-be70-8348a9e2f225",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"b8d0b8fe-3ffe-4a00-8e1e-0b3191719a3b",
"fdf8a517-5c45-46fc-a870-b91ff2a2208e"
],
"Companies": [
"ad4f3d70-3934-4ff9-9cd8-87fab6ae9064",
"31f43e32-4748-462e-9388-b2b732052d82"
],
"Groups": [
"be51fe02-2448-456c-bef1-5258978ad048",
"a3161159-e3d8-4be9-abd0-bcfa3d92b99a"
],
"Opportunities": [
"42db7919-f8fe-4b1e-8a04-baaa8ff44dfd",
"bc0daec8-5925-40a3-9d42-0aa3f8cfce4d"
]
}
}
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:
"252efd3b-e213-48e8-bcbd-acc72507a61f"