POST api/2.0/crm/opportunity/filter/taglist
Adds the selected tag to the group of opportunities with the parameters specified in the request.
Name |
Description |
Type |
Example |
responsibleid
sent in body
|
Opportunity responsible ID
optional
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
opportunityStagesid
sent in body
|
Opportunity stage ID
optional
|
number
|
1234
|
tags
sent in body
|
Opportunity tags
optional
|
Collection of strings
collection
|
some text
|
contactid
sent in body
|
Contact ID
optional
|
number
|
1234
|
stageType
sent in body
|
Opportunity stage type
Allowed values: {Open, ClosedAndWon, ClosedAndLost}
optional
|
Open, ClosedAndWon, ClosedAndLost
|
Open
|
contactAlsoIsParticipant
sent in body
|
Participation status: take into account opportunities where the contact is a participant or not
optional
|
Bool value
|
true
|
fromDate
sent in body
|
Start date
optional
|
Date and Time
|
Roundtrip format: 2008-04-10T06-30-00.000Z
|
toDate
sent in body
|
End date
optional
|
Date and Time
|
Roundtrip format: 2008-04-10T06-30-00.000Z
|
tagName
sent in body
|
Tag name
|
string
|
some text
|
POST api/2.0/crm/opportunity/filter/taglist
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"responsibleid": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"opportunityStagesid": 1234,
"tags": [
"some text"
],
"contactid": 1234,
"stageType": "Open",
"contactAlsoIsParticipant": true,
"fromDate": "2008-04-10T06-30-00.000Z",
"toDate": "2008-04-10T06-30-00.000Z",
"tagName": "some text"
}