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": "971cb989-80c8-417f-9665-730ae31b9ccf",
"ParentId": "5547d800-221e-43d1-b064-3bfb91b93cb1",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"911cfc89-b807-4b2d-8f82-ca6675472e02",
"41b7b66b-cc58-4de4-81b3-945c176a264b"
],
"Companies": [
"565f9ca6-c839-40ce-a791-8de5a2f80a4e",
"9bd8b4fe-751e-4f3d-9b30-0eb7c3adc65e"
],
"Groups": [
"861aefaa-f7a8-4d6d-bccb-eeb8d512937f",
"8b4eb0f7-22f9-4f03-9010-b52feaf470ca"
],
"Opportunities": [
"fb15695e-b648-4879-9842-a72d9af9cf32",
"9eb5bb15-65bc-4905-b91d-a7051b48736b"
]
}
}
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:
"fb05d040-a8a0-47b1-be78-384effab5978"