---
title: "PATCH /v1/projects/{projectsId}/eventThreatDetectionSettings/customModules/{customModulesId}"
method: PATCH
path: "/v1/projects/{projectsId}/eventThreatDetectionSettings/customModules/{customModulesId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/eventThreatDetectionSettings/customModules/{customModulesId}

`PATCH /v1/projects/{projectsId}/eventThreatDetectionSettings/customModules/{customModulesId}`

## Request

- Base URL: `https://securitycenter.googleapis.com`
- URL: `https://securitycenter.googleapis.com/v1/projects/{projectsId}/eventThreatDetectionSettings/customModules/{customModulesId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/securitycenter`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/securitycenter`

## Path parameters

- `projectsId` string, required
- `customModulesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- EventThreatDetectionCustomModule
  - `ancestorModule` string
  - `cloudProvider` 'CLOUD_PROVIDER_UNSPECIFIED' | 'GOOGLE_CLOUD_PLATFORM' | 'AMAZON_WEB_SERVICES' | 'MICROSOFT_AZURE'
  - `config` object
  - `description` string
  - `displayName` string
  - `enablementState` 'ENABLEMENT_STATE_UNSPECIFIED' | 'ENABLED' | 'DISABLED' | 'INHERITED'
  - `lastEditor` string
  - `name` string
  - `type` string
  - `updateTime` string, google-datetime

## Response `200`

Successful response

- EventThreatDetectionCustomModule
  - `ancestorModule` string
  - `cloudProvider` 'CLOUD_PROVIDER_UNSPECIFIED' | 'GOOGLE_CLOUD_PLATFORM' | 'AMAZON_WEB_SERVICES' | 'MICROSOFT_AZURE'
  - `config` object
  - `description` string
  - `displayName` string
  - `enablementState` 'ENABLEMENT_STATE_UNSPECIFIED' | 'ENABLED' | 'DISABLED' | 'INHERITED'
  - `lastEditor` string
  - `name` string
  - `type` string
  - `updateTime` string, google-datetime

## Changes

- **2026-11-14** `c55a92eb682a`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/securitycenter` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/securitycenter` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/securitycenter/changes/v1/projects/:projectsId/eventThreatDetectionSettings/customModules/:customModulesId/patch.md)

---

[API](https://skmtc.dev/google/apis/securitycenter.md) - [All operations](https://skmtc.dev/google/apis/securitycenter/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/securitycenter/revisions/c55a92eb682a?raw)
