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": "3e71c900-1325-497d-999d-12f5b6ec0c5e",
"ParentId": "832ed9fa-458a-4531-a828-60b0e86a67a9",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"ff4c80a9-b69f-492e-b58b-4c4e34e19157",
"223e0e1a-2fea-4c26-b909-97b5d852ef87"
],
"Companies": [
"6be76a6b-958a-413e-9aa5-73007d3e5dcb",
"afc972c3-3d3d-44bf-8c2b-5b99a5426a28"
],
"Groups": [
"982f70ba-8375-47ba-bf16-a5a05bc5dd0e",
"4623b105-aa1a-40a6-94ac-7417658cf616"
],
"Opportunities": [
"af74afd6-4811-4bcb-a306-4383294551fa",
"687bd7b9-6e1e-4958-bf43-89729aa361f5"
]
}
}
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:
"57b7d378-8cb1-4d2c-9d33-e85ef22ca30d"