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": "5a31a34b-8d3e-4f0d-b0ad-0c07c72c1708",
"ParentId": "6403d24d-bd22-4170-9a61-c052d99f6ac3",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"852b0e16-9972-4ce9-a4bb-43dc4e4bf9c4",
"825068ce-38bb-4f38-88b2-12c082685f07"
],
"Companies": [
"2354c200-4b8e-41f2-876b-05920c212d79",
"a848676a-fc0e-413d-82da-afa195f02dc5"
],
"Groups": [
"0cbc4308-ed7c-4046-ae80-c922ce60a576",
"d0e8f0a7-6691-4c1d-86d2-42fcd66ea71d"
],
"Opportunities": [
"85660555-c9ed-4e55-b6b3-2d8bb7a54e01",
"f97ab85c-bfbf-45ac-839f-9f132b18dcfb"
]
}
}
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:
"e0b36dee-e15c-41ad-9d47-b939265b7dc0"