{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates the secret scanning pattern configurations 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","properties":{"pattern_config_version":{"$ref":"#/definitions/secret-scanning-row-version"},"provider_pattern_settings":{"type":"array","description":"Pattern settings for provider patterns.","items":{"type":"object","properties":{"token_type":{"type":"string","description":"The ID of the pattern to configure."},"push_protection_setting":{"type":"string","description":"Push protection setting to set for the pattern.","enum":["not-set","disabled","enabled"]}}}},"custom_pattern_settings":{"type":"array","description":"Pattern settings for custom patterns.","items":{"type":"object","properties":{"token_type":{"type":"string","description":"The ID of the pattern to configure."},"custom_pattern_version":{"$ref":"#/definitions/secret-scanning-row-version"},"push_protection_setting":{"type":"string","description":"Push protection setting to set for the pattern.","enum":["disabled","enabled"]}}}}},"examples":[{"pattern_config_version":"0ujsswThIGTUYm2K8FjOOfXtY1K","provider_pattern_settings":[{"token_type":"GITHUB_PERSONAL_ACCESS_TOKEN","push_protection_setting":"enabled"}],"custom_pattern_settings":[{"token_type":"cp_2","custom_pattern_version":"0ujsswThIGTUYm2K8FjOOfXtY1K","push_protection_setting":"enabled"}]}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"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 organization pattern configurations","id":"github.secret-scanning.update-org-pattern-configs","example":{"path":{"org":"example"},"body":{"pattern_config_version":"0ujsswThIGTUYm2K8FjOOfXtY1K","provider_pattern_settings":[{"token_type":"GITHUB_PERSONAL_ACCESS_TOKEN","push_protection_setting":"enabled"}],"custom_pattern_settings":[{"token_type":"cp_2","custom_pattern_version":"0ujsswThIGTUYm2K8FjOOfXtY1K","push_protection_setting":"enabled"}]}},"maxRequests":1,"summary":false}}