{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Bulk creates 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 create (maximum 100).","maxItems":100,"items":{"$ref":"#/definitions/secret-scanning-custom-pattern-to-create"}}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"secret-scanning-custom-pattern-to-create":{"title":"Secret Scanning Custom Pattern To Create","description":"A custom pattern to create in a bulk operation.","type":"object","required":["name","pattern"],"properties":{"name":{"type":"string","description":"The name of the custom pattern."},"pattern":{"type":"string","description":"The regular expression of the custom pattern."},"start_delimiter":{"type":"string","description":"The start delimiter regex for the custom pattern.\nDefaults to `\\A|[^0-9A-Za-z]` when not specified.","default":"\\A|[^0-9A-Za-z]"},"end_delimiter":{"type":"string","description":"The end delimiter regex for the custom pattern.\nDefaults to `\\z|[^0-9A-Za-z]` when not specified.","default":"\\z|[^0-9A-Za-z]"},"must_match":{"type":"array","description":"List of regexes that the secret must match.","items":{"type":"string"}},"must_not_match":{"type":"array","description":"List of regexes that the secret must not match.","items":{"type":"string"}}}}}},"name":"Bulk create repository custom patterns","id":"github.secret-scanning.bulk-create-repo-custom-patterns","example":{"path":{"owner":"octocat","repo":"hello-world"},"body":{"patterns":[]}},"maxRequests":1,"summary":false}}