{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Bulk deletes secret scanning custom patterns for a repository.\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.\n\nFine-grained access tokens require the `administration:write` repository permission.","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository without the `.git` extension. The name is not case sensitive."}},"required":["owner","repo"],"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 repository custom patterns","id":"github.secret-scanning.bulk-delete-repo-custom-patterns","example":{"path":{"owner":"octocat","repo":"hello-world"},"body":{"patterns":[]}},"maxRequests":1,"summary":false}}