{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates a secret scanning custom pattern 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."},"pattern_id":{"type":"integer","description":"The ID of the custom pattern."}},"required":["org","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 an organization custom pattern","id":"github.secret-scanning.update-org-custom-pattern","example":{"path":{"org":"example","pattern_id":1},"body":{"custom_pattern_version":"example","pattern":"example"}},"maxRequests":1,"summary":false}}