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": "e257bb72-25bd-40d3-b471-69e843b55eee",
"ParentId": "3ed8a22d-2048-4a1e-99e6-f9078c774688",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"52512e00-17fa-4af1-a685-bc2e45f07b6a",
"26be0152-b6e9-485c-80d1-2635df404c48"
],
"Companies": [
"34102bd9-cf90-40a5-8256-817e9fb94c99",
"cdd5de82-4841-47e2-b54d-deeea9726144"
],
"Groups": [
"46b652b4-2ed3-4069-be9a-f010de89d3f5",
"ba0c4b21-968c-4e45-92ce-5cf6f202a1cd"
],
"Opportunities": [
"44f9c1c6-465b-4ea8-8a3d-1b2ed6256178",
"df0d2f58-0281-4f99-8ad0-87f6e4e8e6b3"
]
}
}
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:
"8e4ab69f-587c-4061-ad06-95f5ac8e7649"