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": "3e23fb02-997a-4d1d-b8d4-b52253d6e0bf",
"ParentId": "999cb0d5-bcec-4dbf-a418-63a23e3b64ce",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"a9edda89-ed8a-4e08-bfd3-41a4407576ce",
"e614d311-163f-4298-acda-dfb6d3fc0ffb"
],
"Companies": [
"cc2bc3cc-c1b5-486f-aed5-47bfd1b65e15",
"72c65c52-ee95-4e8a-839f-cda11c2359e4"
],
"Groups": [
"60a4552a-7766-4483-b60c-4d7d012728e3",
"6b207e53-ffe4-46a3-a11e-c5232315ea70"
],
"Opportunities": [
"5a79c46c-b4fa-4ce5-a6c8-87f2e430763a",
"27c38b42-e499-4229-b99e-6615284e7b1e"
]
}
}
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:
"37f3c5f1-0145-430b-8397-f624f2269f46"