View.AddCounts
  • 14 May 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

View.AddCounts

  • Dark
    Light
  • PDF

Article summary

Description

Store the counts of the items to a view.

URL parameters

URL parameter ordering

The URL parameters below are listed in the order they should be entered in the API URL.

NameRequiredTypeDescription
ViewIDTruenumericUnique identifier of the view.
ChangeThresholdAboveFalsenumericIncrease percentage max.
ChangeThresholdBelowFalsenumericDecrease percentage max.
ChangeThresholdFailJobFalsestringStop job when counts are out of the specified range. Default value is false.

Responses

NameTypeDescription
ResultstringSuccess if the operation was successful.

Sample request

curl -X GET 'https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=View.AddCounts&ViewID=1003&ChangeThresholdAbove=50&ChangeThresholdBelow=20&ChangeThresholdFailJob=False&ResponseFormat=XML'

Sample responses

XML

<?xml version="1.0" encoding="utf-8"?>
<ApiResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Result>Success</Result>
</ApiResponse>

Was this article helpful?