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": "ce27b8c2-14b0-4439-a98c-e5e85330ee70",
"ParentId": "7c6ce929-76d1-41e7-b3d4-de99c12365ac",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"a94ca0cb-464c-4ff4-855e-d4784a9b34b5",
"1002229b-b298-4cd1-b79e-369ecc98eadc"
],
"Companies": [
"2c55e64a-5ba8-407a-9fc4-ac0f90692fb4",
"106c3f67-1367-43ed-87c1-eb8a61c363cd"
],
"Groups": [
"e2a48b88-9be3-4a98-915c-25f9684c8544",
"2f44d2fe-dcf2-463a-8e17-0602a2f2da64"
],
"Opportunities": [
"bd6d0122-e2e2-41ca-b408-37ec91e06542",
"40388ba4-732f-4a1a-a127-609958b1da82"
]
}
}
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:
"714aa356-4653-4ebd-865d-2ba74dc0c0f6"