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": "243a8137-8791-4e4f-99e0-8998369c15f8",
"ParentId": "77152a84-33da-43b9-a92e-f93e496800b8",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"fbf90829-7490-4640-a595-23d7336de3f8",
"79d43f0f-f565-46ce-b338-e484d83daf6f"
],
"Companies": [
"4eb90d00-2879-4813-b455-5eaf0b80dd4f",
"d4a814e3-6ec8-461a-be48-1fb2a81d9e34"
],
"Groups": [
"5af7e81e-be6a-416a-9ec7-37614f6dcf9c",
"7943acee-1934-4494-ba78-e46ff3c2d738"
],
"Opportunities": [
"3c0a25dc-5438-4ee8-b1ff-7a9ea7d4fa85",
"dee15cdd-ddb2-4ab5-b8db-84c7de0fa53f"
]
}
}
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:
"dd0e8ad2-df2c-4540-bf43-0642696ea726"