Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".
This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".
allowMissing
boolean
Optional. If set to true, and the Enrollment is not found, a new Enrollment will be created. In this situation, updateMask is ignored.
validateOnly
boolean
Optional. If set, validate the request and preview the review, but do not post it.
Request body
The request body contains an instance of Enrollment.
Response body
If successful, the response body contains an instance of Operation.
[[["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-06-13 UTC."],[[["\u003cp\u003eThis page details how to update an Enrollment resource using a PATCH HTTP request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a resource name for the Enrollment in the URL, formatted as \u003ccode\u003eprojects/*/locations/*/enrollments/*\u003c/code\u003e within the \u003ccode\u003eenrollment.name\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify which fields to update with the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, using a comma-separated list of field names, or choose to create an enrollment if one isn't found by using \u003ccode\u003eallowMissing\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated data for the Enrollment resource, and the response body, if successful, returns an \u003ccode\u003eOperation\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to perform this update requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.enrollments.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdate a single Enrollment.\n\n### HTTP request\n\n`PATCH https://eventarc.googleapis.com/v1/{enrollment.name=projects/*/locations/*/enrollments/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Enrollment](/eventarc/docs/reference/rest/v1/projects.locations.enrollments#Enrollment).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/eventarc/docs/reference/rest/v1/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]