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": "5d0dc526-8184-4057-b938-6957aa46b777",
"ParentId": "7ffda7e4-6202-4995-a876-cef3cdd6ada8",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"0fd360cf-fc1d-4d4e-9d05-88e3041292a3",
"9ee8ff42-928b-41c6-bab7-c053e85aac65"
],
"Companies": [
"5f809805-e05f-41ee-b6d0-a880da401de3",
"8aa10eff-2276-4c78-af5c-a393170cfc15"
],
"Groups": [
"66697f3b-c832-4011-ac01-621955778809",
"d303accf-2260-4032-9fbc-acc1f42fcf75"
],
"Opportunities": [
"9740d9ea-88ca-4b1e-8f3b-56f3f514de9e",
"a064b3fe-58cd-4d71-af97-4d72b2e061b9"
]
}
}
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:
"ba8c36a9-4b34-4b55-a9ee-691c83f66a36"