Stay organized with collections
Save and categorize content based on your preferences.
Modifies the PushConfig for a specified subscription. This may be used
to change a push subscription to a pull one (signified by an empty
PushConfig) or vice versa, or change the endpoint URL and other
attributes of a push subscription. Messages will accumulate for delivery
continuously through the call regardless of changes to the PushConfig.
Arguments
Parameters
subscription
string
Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.
[[["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.subscriptions.modifyPushConfig\n\nModifies the `PushConfig` for a specified subscription. This may be used\nto change a push subscription to a pull one (signified by an empty\n`PushConfig`) or vice versa, or change the endpoint URL and other\nattributes of a push subscription. Messages will accumulate for delivery\ncontinuously through the call regardless of changes to the `PushConfig`.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response will be empty.\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.subscriptions/modifyPushConfig). \n\n### YAML\n\n```yaml\n- modifyPushConfig:\n call: googleapis.pubsub.v1.projects.subscriptions.modifyPushConfig\n args:\n subscription: ...\n body:\n pushConfig:\n attributes: ...\n oidcToken:\n audience: ...\n serviceAccountEmail: ...\n pushEndpoint: ...\n result: modifyPushConfigResult\n```\n\n### JSON\n\n```json\n[\n {\n \"modifyPushConfig\": {\n \"call\": \"googleapis.pubsub.v1.projects.subscriptions.modifyPushConfig\",\n \"args\": {\n \"subscription\": \"...\",\n \"body\": {\n \"pushConfig\": {\n \"attributes\": \"...\",\n \"oidcToken\": {\n \"audience\": \"...\",\n \"serviceAccountEmail\": \"...\"\n },\n \"pushEndpoint\": \"...\"\n }\n }\n },\n \"result\": \"modifyPushConfigResult\"\n }\n }\n]\n```"]]