Skip to main content

Update a YARA rule

PUT 

/detection/yara/rules/:rule_id

Replaces the rule. content is compiled first; a source that does not compile returns 422 and nothing changes. The owner, or a teammate when can_team_edit is set, may update a rule; only the owner's visibility, alert_visibility, and can_team_edit are applied. Quota class yara_write.

Request​

Responses​

The updated rule.

Response Headers
    RateLimit-Policy

    The minute, hour, and day limits of the governing quota, for example 50;w=60, 500;w=3600, 500;w=86400.

    RateLimit-Limit

    Limit of the governing window.

    RateLimit-Remaining

    Requests remaining in the governing window.

    RateLimit-Reset

    Seconds until capacity is available in the governing window.