Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to alertPolicies.create, alertPolicies.delete and alertPolicies.patch.
HTTP request
POST https://monitoring.googleapis.com/v3/{name}/alertPolicies
Path parameters
Parameters
name
string
Required. The project in which to create the alerting policy. The format is:
projects/[PROJECT_ID_OR_NUMBER]
Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. |name| must be a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[ALERT_POLICY_ID], identifying the policy in the container.
Authorization requires the following IAM permission on the specified resource name:
monitoring.alertPolicies.create
Request body
The request body contains an instance of AlertPolicy.
Response body
If successful, the response body contains a newly created instance of AlertPolicy.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[],[],null,["# Method: projects.alertPolicies.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new alerting policy.\n\nDesign your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to alertPolicies.create, alertPolicies.delete and alertPolicies.patch.\n\n### HTTP request\n\n`POST https://monitoring.googleapis.com/v3/{name}/alertPolicies`\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [AlertPolicy](/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#AlertPolicy).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AlertPolicy](/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#AlertPolicy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/monitoring`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]