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": "95f9ec80-1ba0-4c60-8dda-6b0998be1d2b",
"ParentId": "cd6ad4a9-39aa-4d24-8ada-b49fb75b2032",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"21c2d700-2fab-44d9-9b22-ab36b61875cf",
"af467e8a-db28-4f56-a8dc-e591941c3354"
],
"Companies": [
"bc086670-4d7e-4d93-be6a-41f683642ba4",
"7aafc58e-fc06-4eaf-ba7e-4b8c44088733"
],
"Groups": [
"3b0329d3-96af-4f7d-8dc3-0657d68fdec0",
"25b4fd58-801d-4e57-92fe-f81cdb885f1a"
],
"Opportunities": [
"7b7be58f-48a7-4cb3-b50e-e77bb3cbbe57",
"8ac5ec36-2469-49a3-bf61-8f0c02f0f688"
]
}
}
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:
"60ab5483-f4d9-40cc-9ffc-062086005f6c"