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": "d94b0b93-3ce9-49d6-9b1c-b56f39d83fdb",
"ParentId": "b25ae994-4698-4f53-ac80-804bede5c90f",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"2fe1d8fc-c5f4-4fba-bb50-bb816b5b5f16",
"95a33ae0-2a54-470b-840f-52369d3e9b32"
],
"Companies": [
"118b1f5c-7026-4222-aff1-7d99e3c9cb94",
"6d4033e5-54b6-45fc-8c3d-cfccc36bf3ea"
],
"Groups": [
"465e21a8-edce-4dd4-b444-f15cdea8d4d8",
"08c3393b-ee37-4b2a-bca5-a37f602e6bda"
],
"Opportunities": [
"4447d832-3452-4984-a865-68541cb443c6",
"480ab71f-f3c2-405a-b893-d1859b0a4fc7"
]
}
}
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:
"1144a590-46dd-4786-a153-1b026f840393"