[[["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.topics.publish\n\nAdds one or more messages to the topic. Returns `NOT_FOUND` if the topic\ndoes not exist.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`PublishResponse`](/workflows/docs/reference/googleapis/pubsub/v1/Overview#PublishResponse).\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.topics/publish). \n\n### YAML\n\n```yaml\n- publish:\n call: googleapis.pubsub.v1.projects.topics.publish\n args:\n topic: ...\n body:\n messages: ...\n result: publishResult\n```\n\n### JSON\n\n```json\n[\n {\n \"publish\": {\n \"call\": \"googleapis.pubsub.v1.projects.topics.publish\",\n \"args\": {\n \"topic\": \"...\",\n \"body\": {\n \"messages\": \"...\"\n }\n },\n \"result\": \"publishResult\"\n }\n }\n]\n```"]]