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": "1a5d726e-ebc0-4b76-b5be-b8d7197ac994",
"ParentId": "1d5fdc5d-29d5-4e62-8aec-9d4744d6aa46",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"de00204e-caa0-47e2-89cf-3f6911e361cc",
"540f9cbb-2618-4c00-ac27-70ed0c14c12b"
],
"Companies": [
"b00c7ea6-180d-4f5d-b53c-517068c862b2",
"dee727b1-845b-4a36-8488-25e99538d66d"
],
"Groups": [
"da6c737e-99ca-4d63-8532-576eb1dbd5fd",
"43ae22bc-41d7-48fe-9f01-3df2a4d478e3"
],
"Opportunities": [
"13a0960c-e97f-4bf1-b3de-02baa4a3845f",
"ccbb67b0-4ada-4ed4-9b99-577415fe88ec"
]
}
}
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:
"999f54f1-57f0-4312-b58c-b1c7045aed15"