action twitter_add_or_delete_rules { label: "Add/Delete rules" description: "Add or delete rules from a User's active rule set. Users can provide unique, optionally tagged rules to add. Users can delete their entire rule set or a subset specified by rule ids or values." provider: twitter method: POST path: "/2/tweets/search/stream/rules" encoding: json input: { type: "object" properties: { dry_run: { type: "boolean" } } additionalProperties: false } output: { type: "object" description: "A response from modifying user-specified stream filtering rules." required: ["meta"] properties: { data: { type: "array" description: "All user-specified stream filtering rules that were created." items: { type: "object" description: "A user-provided stream filtering rule." required: ["value"] properties: { id: { type: "string" description: "Unique identifier of this rule." } tag: { type: "string" description: "A tag meant for the labeling of user provided rules." } value: { type: "string" description: "The filterlang value of the rule." } } } } errors: { type: "array" items: { type: "object" description: "An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807)." required: ["type", "title"] properties: { detail: { type: "string" } status: { type: "integer" } title: { type: "string" } type: { type: "string" } } } } meta: { type: "object" required: ["sent"] properties: { next_token: { type: "string" description: "The next token." } result_count: { type: "integer" format: "int32" description: "Number of Rules in result set." } sent: { type: "string" } summary: { type: "object" } } } } } }