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": "03d1203d-4044-47f8-8788-760070ea7ffd",
"ParentId": "4fa3ca73-590a-4f09-96e7-045bafe27282",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"LinkedEntities": {
"Contacts": [
"5ab4c8fa-98aa-4b9a-8407-199b5981c9eb",
"756ebc87-6c84-41c1-bb18-ac513dd8d37d"
],
"Companies": [
"f23cc39b-d1c9-4871-a5c7-1c4004b36c40",
"1c7ca449-bc6c-4e61-832d-7eb7cae0794e"
],
"Groups": [
"fc398918-7d59-4910-870a-640e2ad9213e",
"e6d575f3-de6e-4ff5-a607-26a4ddc421e9"
],
"Opportunities": [
"fadb6e2d-45e2-447a-a067-7f3316df4b70",
"e8ab1d3e-6436-4da6-b2bd-9074589c5202"
]
}
}
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:
"6e60c1cb-764f-4945-b88b-74cbcf1d43c3"