Skip to main content
Rules

Replace a rule

Replaces a rule's name, conditions and actions, keeping whether it is on. Editing a rule with outbound actions needs a key with automations. Webhook rules are changed only in Sparrow Intel. Needs a key with the sparrow.write scope.

PUT
/rules/{id}
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

idstringrequired

The rule id.

Body

application/json
actionsobject[]required

What the rule does, 1 to 10, each {"type": an action type, "value": its setting (a label, status, teammate or task settings), "settings": an object, for outbound actions that take several}.

conditionsobject[]required

Conditions the item must meet, 1 to 20, each {"type": a condition type, "operator": one of its operators (omit for its first), "value": the value to compare}. Ratings use the account's scale.

matchenum<string>

all (default) when every condition must match, any when one is enough.

Available options: all, any
targetenum<string>required

review, prediction, reservation, host_to_guest_review, conversation_post, voice_conversation or listing_quality.

Available options: review, prediction, reservation, host_to_guest_review, voice_conversation, conversation_post, listing_quality
titlestringrequired

Rule name, up to 200 characters.

Response

application/json

Success

dataany
metaobject