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": "df7a4c09-d237-41a8-ba91-3536331841f1",
"ParentId": "b88a5964-eb80-4b1d-92e7-507a65ec8bff",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"54c97239-fcc4-46f7-9ff6-a3eb5104ac33",
"f008fd8e-eb02-4f17-ac5a-7feae3ad71b5"
],
"Companies": [
"542afc1d-09b1-4abb-a5a2-67826b465a88",
"b405df22-ff8d-4af4-8785-975dec5b4a68"
],
"Groups": [
"7c459be0-a27b-4186-8570-fca43e22446a",
"0190a42a-d77c-41f7-83b7-0487a60104c7"
],
"Opportunities": [
"ceb460ca-91ea-4f67-8d56-f103b9d31951",
"89cc36fb-dc3d-4b8b-8d63-a1cf7a0fcc33"
]
}
}
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:
"07899e0b-4ad3-4826-b7c2-9aab351c90af"