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": "66b7263e-43d6-42d0-91b0-9d3681a0d8b1",
"ParentId": "37e8754b-5a74-4fd8-95e3-f13e8ab4cb9c",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"5c1c09aa-732d-49cb-b6d7-ea63e45a294c",
"af94508a-a321-4634-9690-fb5c9ec9ce03"
],
"Companies": [
"e45c8077-e577-4d6b-b23c-873bb44a5499",
"ee8d5dde-6168-4fbc-b3e5-38591fc71fab"
],
"Groups": [
"11117ac4-59d2-4529-840b-d4f22bfd3964",
"8f42af1a-8ce3-44da-a698-776e1912ecd2"
],
"Opportunities": [
"dec66c7e-8cbf-498a-b5e0-c948814475d4",
"c3f5f03e-476a-44e2-b9c2-bac4182cc6ec"
]
}
}
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:
"13f57e13-cbd3-411a-aeaf-c42c4c14e35a"