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": "cab8b4d5-8d79-411b-b8e1-bbd30d7d7f48",
"ParentId": "31795ae3-a24a-423a-bd05-9d836cea68e6",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"c6a0716f-8f69-47e5-9178-402942db1ffe",
"a3f518a2-03cb-496c-9715-a21d022a5d4f"
],
"Companies": [
"6cde2933-0501-4bbb-bb71-ecad657e2ac9",
"010ea34b-f455-4286-aed2-d7eaffe3c2a9"
],
"Groups": [
"df4329f4-131c-4b1e-a321-04aa4d24ef09",
"a14f3732-490c-4f83-b2c6-01531ca69f26"
],
"Opportunities": [
"d87d5f66-660b-47fb-bd53-0dc3306f7f48",
"715cce2b-3a41-4d48-a4a5-672a46e0c5aa"
]
}
}
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:
"9dcf013d-b434-49ae-8e4f-5fe3f67562cd"