NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Answer Rules → Add a Answerrule for a User

AI-generated

Summary

Add a new Answer Rule for a specified user and domain

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • PostDomainsByUsersByAnswerrules__path__domain (required) — Domain identifier chosen for the rule; select from available domains
  • PostDomainsByUsersByAnswerrules__path__user (required) — User identifier for whom the rule applies; select a user
  • PostDomainsByUsersByAnswerrules__body — JSON body containing the answer rule definition

Output shape

a single Answer Rule object

On success the response contains the created rule's details (e.g., id, timestamps); on failure an error envelope is returned with HTTP status and message.

Examples

Example 1: Add a rule for a specific domain and user

Domain: example.com; User: 1001; Body: { "answer": "Yes" }; Refresh Dropdown Cache: false

Example 2: Fetch fresh options before adding

Refresh Dropdown Cache: true; Domain: example.com; User: 1002; Body: { "answer": "No" }

Example 3: Create rule with minimal payload

Domain: example.com; User: 1003; Body: {}

Links

Discussion