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
MutableEntityExtendedName | 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": "e0bec0a4-b745-45ca-a9c4-6c3c5aa11b31", "ParentId": "7e6c1491-77b5-4dcc-a92e-36c48f9deb13", "Fields": { "sample string 1": {}, "sample string 3": {} }, "LinkedEntities": { "Contacts": [ "5f5704bd-f6cf-424d-87cc-41434e3c2277", "a6862117-d29c-44b1-878a-616d277fdda0" ], "Companies": [ "2ac02d9e-9b23-46a4-90a2-5a0796c83e69", "c02e00cc-7f1a-4953-b4a3-211fef8dd190" ], "Groups": [ "d280d962-5b0e-42bc-8e72-469afcf0172e", "0394ffd4-fa59-41bb-b1d6-a93362e88290" ], "Opportunities": [ "1d3ee224-8127-48ab-923a-aa937a54ddb6", "5064c215-2673-40bb-9988-48a84a162455" ] } }
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:
"5328f275-73cf-4350-aff3-bedae551ed94"