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": "f2b48804-12cd-408b-a818-61167cdd5dc0",
"ParentId": "a0b57fe9-16b3-4547-bb78-f3e671a5b66e",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"daa87a9c-d2cb-43a4-9449-9e3e3eac650e",
"feda7971-032c-40c0-8069-b69cbca2b2de"
],
"Companies": [
"b0d1c423-5d0a-46de-a420-bcbedbfc2e77",
"8bcb6ba6-b6e3-4027-99bc-d06cfbcc7751"
],
"Groups": [
"ec51df4a-181d-4bb4-94c8-554340f2fb18",
"16de2b5b-3121-4bdb-8dd4-4e68fb7b6199"
],
"Opportunities": [
"5a967dc7-2bac-4f65-b40d-fa1d2701657c",
"996eec07-6416-47e5-bdc0-fa6eb726d2bf"
]
}
}
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:
"0db800b2-48b6-4845-b48a-c2e193273118"