NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Answer Rules → Update a Answerrule for a User

AI-generated

Summary

Update an Answerrule for a user

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • PutDomainsByUsersByAnswerrulesBy__path__domain (required) — Domain to update, supplied as a resource locator
  • PutDomainsByUsersByAnswerrulesBy__path__user (required) — User identifier, supplied as a resource locator
  • PutDomainsByUsersByAnswerrulesBy__path__timeframe (required) — Timeframe for the rule
  • PutDomainsByUsersByAnswerrulesBy__body — JSON body containing the rule details

Output shape

updated Answerrule object

The response contains the updated rule; optional fields may be omitted, and errors are returned as standard HTTP error envelopes.

Examples

Example 1: Refresh dropdown cache and update rule with new domain and user

refreshOptions: true, domain: "example.com", user: {id: "1001"}, timeframe: "30d", body: {"field": "value"}

Example 2: Update rule without refreshing cache

refreshOptions: false, domain: "example.org", user: {id: "1002"}, timeframe: "", body: {"status": "active"}

Example 3: Update rule with minimal parameters

refreshOptions: false, domain: "example.net", user: {id: "1003"}, timeframe: "24h", body: {"enabled": true}

Links

Discussion