{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates a secret scanning custom pattern 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."},"pattern_id":{"type":"integer","description":"The ID of the custom pattern."}},"required":["owner","repo","pattern_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/secret-scanning-custom-pattern-to-update"}},"required":["path","body"],"additionalProperties":false,"definitions":{"secret-scanning-custom-pattern-to-update":{"title":"Secret Scanning Custom Pattern To Update","description":"Fields to update on a custom pattern. At least one updatable field (`pattern`, `start_delimiter`, `end_delimiter`, `must_match`, or `must_not_match`) must also be provided. Only provided fields will be updated.","required":["custom_pattern_version"],"anyOf":[{"required":["pattern"]},{"required":["start_delimiter"]},{"required":["end_delimiter"]},{"required":["must_match"]},{"required":["must_not_match"]}],"properties":{"pattern":{"type":"string","description":"The updated regular expression of the custom pattern."},"start_delimiter":{"type":"string","description":"The updated start delimiter regex for the custom pattern."},"end_delimiter":{"type":"string","description":"The updated end delimiter regex for the custom pattern."},"must_match":{"type":"array","description":"Updated list of regexes that the secret must match.","items":{"type":"string"}},"must_not_match":{"type":"array","description":"Updated list of regexes that the secret must not match.","items":{"type":"string"}},"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":"Update a repository custom pattern","id":"github.secret-scanning.update-repo-custom-pattern","example":{"path":{"owner":"octocat","repo":"hello-world","pattern_id":1},"body":{"custom_pattern_version":"example","pattern":"example"}},"maxRequests":1,"summary":false}}