Update organization pattern configurations
Updates the secret scanning pattern configurations for an organization.
Personal access tokens (classic) need the write:org scope to use this endpoint.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organization name. The name is not case sensitive.
Request Bodyrequired
Section titled “Request Bodyrequired”object
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.
Pattern settings for provider patterns.
object
The ID of the pattern to configure.
Push protection setting to set for the pattern.
Pattern settings for custom patterns.
object
The ID of the pattern to configure.
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.
Push protection setting to set for the pattern.
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" } ]}Responses
Section titled “Responses”Response
object
The updated pattern configuration version.
Examples
{ "pattern_config_version": "0ujsswThIGTUYm2K8FjOOfXtY1K"}Bad Request
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Scim Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}Forbidden
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Conflict
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Validation Error
object
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "errors": [ { "resource": "example", "field": "example", "message": "example", "code": "example", "index": 1, "value": [ "example" ] } ]}