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": "2cf7b7db-579b-4e69-a922-5184f3abd3d7",
"ParentId": "56af4205-0949-4546-a1c8-8a14682afffc",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"60d6400d-b7de-488e-87eb-ec7cef3fc8d2",
"bc35655e-40dc-4481-b089-7ae4ec5e46a2"
],
"Companies": [
"0e7e6ffb-a4c8-4bea-9eca-c41452cc1d2a",
"6e203128-3f10-4e97-acd3-fa020af7fdfd"
],
"Groups": [
"29397b5e-598a-4d8e-ac88-71b1706cf207",
"b9ce2d10-6cbf-4560-89b7-b98da33bc76e"
],
"Opportunities": [
"5adc89ae-49d9-4a5a-b117-dc2df8d9f75a",
"f75e8b53-e6bb-47f5-a6df-847e561a3b73"
]
}
}
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:
"ee5502bd-dc81-495c-9024-6b0f30f15903"