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": "26e673b1-f0fa-4cd0-87b8-316746cec268",
"ParentId": "71192fa3-74a6-450f-b33b-bb0e8cb0832d",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"2e2a47d3-bbc9-4954-a42b-4315945552e5",
"62e164cc-bd6d-4a3f-90ca-0cd9ed06435d"
],
"Companies": [
"5b80f3c1-8190-4e92-a56b-1e601e97b8ee",
"afd43559-f53f-4328-9b9a-d215a167d888"
],
"Groups": [
"526cada3-caf5-41e5-93e4-8c9ae1c3eae1",
"f281fe68-52c5-4014-bbb1-17f2ad9056b1"
],
"Opportunities": [
"8ca42b8b-0da8-44c2-b2c9-5f6ea9be1b2c",
"27f7db22-53e4-4566-bdce-4e1c62a42d8e"
]
}
}
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:
"db9e607c-907b-46b2-afa2-e39dacdd28a6"