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": "71261d4e-e432-412b-a142-66f2d5295de1",
"ParentId": "96fc7de2-5447-4aaf-8eab-3e23eef091f7",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"5d03b9ed-25c0-4f73-a08b-a4756c1403da",
"82deea44-9742-49ff-99b1-a86a356a4896"
],
"Companies": [
"6fb9647d-dd34-4d7d-bee5-f3f7bc146b38",
"a595eb29-61aa-4c29-8d69-2bcf2c70158f"
],
"Groups": [
"766728e1-958b-4641-8e8a-2d2ef1c8f97e",
"e5058e41-a40b-49e3-9759-6d6b32ba3c18"
],
"Opportunities": [
"38aab933-c84b-4ed1-a3cf-6366f0db2264",
"edb4cec7-cb0c-46a5-b646-a26651be062a"
]
}
}
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:
"b68355a1-bdf9-455c-a58c-a7541a92ac31"