{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Bulk deletes secret scanning custom patterns for an organization.\n\nPersonal access tokens (classic) need the `write:org` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","required":["patterns"],"properties":{"patterns":{"type":"array","description":"The list of custom patterns to delete.","maxItems":500,"items":{"$ref":"#/definitions/secret-scanning-custom-pattern-to-delete"}},"post_delete_action":{"type":"string","description":"What to do with alerts associated with the deleted patterns.\n`delete_alerts` permanently removes the alerts.\n`resolve_alerts` resolves the alerts as \"pattern deleted\".\nDefaults to `delete_alerts` when not specified.","enum":["delete_alerts","resolve_alerts"],"default":"delete_alerts"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"secret-scanning-custom-pattern-to-delete":{"title":"Secret Scanning Custom Pattern To Delete","description":"A custom pattern to delete in a bulk operation.","type":"object","required":["pattern_id"],"properties":{"pattern_id":{"type":"integer","description":"The ID of the custom pattern to delete."},"custom_pattern_version":{"$ref":"#/definitions/secret-scanning-row-version"}}},"secret-scanning-row-version":{"type":["string","null"],"description":"The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update."}}},"name":"Bulk delete organization custom patterns","id":"github.secret-scanning.bulk-delete-org-custom-patterns","example":{"path":{"org":"example"},"body":{"patterns":[]}},"maxRequests":1,"summary":false}}