Stay organized with collections
Save and categorize content based on your preferences.
Updates an existing snapshot. Snapshots are used in Seek operations,
which allow you to manage message acknowledgments in bulk. That is, you
can set the acknowledgment state of messages in an existing subscription
to the state captured by a snapshot.
[[["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-09-04 UTC."],[],[],null,["# Method: googleapis.pubsub.v1.projects.snapshots.patch\n\nUpdates an existing snapshot. Snapshots are used in Seek operations,\nwhich allow you to manage message acknowledgments in bulk. That is, you\ncan set the acknowledgment state of messages in an existing subscription\nto the state captured by a snapshot.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Snapshot`](/workflows/docs/reference/googleapis/pubsub/v1/Overview#Snapshot).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.snapshots/patch). \n\n### YAML\n\n```yaml\n- patch:\n call: googleapis.pubsub.v1.projects.snapshots.patch\n args:\n name: ...\n body:\n snapshot:\n expireTime: ...\n labels: ...\n name: ...\n topic: ...\n updateMask: ...\n result: patchResult\n```\n\n### JSON\n\n```json\n[\n {\n \"patch\": {\n \"call\": \"googleapis.pubsub.v1.projects.snapshots.patch\",\n \"args\": {\n \"name\": \"...\",\n \"body\": {\n \"snapshot\": {\n \"expireTime\": \"...\",\n \"labels\": \"...\",\n \"name\": \"...\",\n \"topic\": \"...\"\n },\n \"updateMask\": \"...\"\n }\n },\n \"result\": \"patchResult\"\n }\n }\n]\n```"]]