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": "74523374-ca61-4eed-99bb-6fd952b7483a",
"ParentId": "e0455a00-49de-4718-880f-b408bd8af30e",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"d5358b76-db95-4128-9275-c236ceca649d",
"06af9a16-5200-4327-81f8-b803eede7edf"
],
"Companies": [
"1d23f130-6249-42e8-b7c8-10d3f1f89452",
"82a41713-af94-4a16-8b76-9c2eb218e349"
],
"Groups": [
"1d81a72f-8dad-4954-857f-baa4197add6d",
"b4b42ba5-1e9f-4a04-8f22-f1cfd2be7bd6"
],
"Opportunities": [
"bcb96e23-b781-4daa-bb09-88965c4a4f3f",
"e1384f8e-b254-4a04-aaba-28a50e4fc70f"
]
}
}
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:
"5a097cee-4131-4671-8423-dc673249198a"