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": "2202f890-6886-4b87-a8f6-5e734e9e6683",
"ParentId": "839042f5-460f-44c9-be18-9c939f6e7384",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"69b8080e-dbc6-4b22-b7bc-97facc0e000e",
"6e9fe228-431c-4ee8-a032-d60b2f0a7971"
],
"Companies": [
"0d877fcf-238b-49f3-96ff-c45e5ee468d1",
"4137aa28-7cb1-450f-9bd3-7cc29fdc8e80"
],
"Groups": [
"d9903154-a4ab-4986-9cce-6f68e26b0f59",
"3ef848ac-579f-46fa-9938-3e59d4f1b191"
],
"Opportunities": [
"400c8de8-2238-41a8-b0f0-89e7e1a49bc3",
"2871ddab-d4d7-4fe0-85ca-4a3a05c0e095"
]
}
}
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:
"d47de670-14cf-4e62-a292-49265b640695"