younifyd
Menu

Upserts an analytics rule

Upserts an analytics rule

PUT/analytics/rules/{ruleName}

Use it in a workflow

  1. Add a step and choose the Typesense connector.
  2. Pick the Upserts an analytics rule action (under analytics).
  3. Fill in the fields below, then reference the result from later steps as {{upsertsAnAnalyticsRule.response.data}}.

Request

Path parameters

ruleNamestringrequired

The name of the analytics rule to upsert

Request body

Enter the body as JSON in the step's Body field.

namestring
rule_tagstring
paramsobject
destination_collectionstring
limitinteger
capture_search_requestsboolean
meta_fieldsarray<string>
expand_queryboolean
counter_fieldstring
weightinteger
json
{
  "name": "string",
  "rule_tag": "string",
  "params": {
    "destination_collection": "string",
    "limit": 0,
    "capture_search_requests": false,
    "meta_fields": [
      "string"
    ],
    "expand_query": false,
    "counter_field": "string",
    "weight": 0
  }
}

Response

Returns 200 with a any. Read it in later steps with {{upsertsAnAnalyticsRule.response.data.<field>}}.

Need more? See the Typesense guide for connection setup and behaviour shared by every action.