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": "509c6927-84c9-45bd-aa5d-5058158c6dc9",
"ParentId": "bd8cfca5-055a-4bbb-b616-ebdd033ad8e8",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"e6a64055-66a9-43c2-b718-c6db9d7743ed",
"314cd2d4-55b6-4847-9a42-01dcb99afbd6"
],
"Companies": [
"c1f12aa8-33fb-4b69-98f9-4501729348a4",
"3540df8f-d016-4bf8-b9d5-4307553cdbdb"
],
"Groups": [
"14b1e253-bec2-4623-bdf5-6f488c4239d6",
"c4236f2b-32fb-4b91-a592-662fffe2d5a4"
],
"Opportunities": [
"3414a328-6ec6-49bd-a531-6d4e1a2aaf02",
"fd8f2f79-86df-48be-b0fb-62ec5ed3349e"
]
}
}
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:
"14f28c00-112e-4114-872b-ae9a6496256e"