The channelConnection that the events are published from. For example: projects/{partner_project_id}/locations/{location}/channelConnections/{channelConnectionId}.
Request body
The request body contains data with the following structure:
The CloudEvents v1.0 events to publish. No other types are allowed. If this field is set, then the textEvents fields must not be set.
An object containing fields of an arbitrary type. An additional field "@type" contains a URI identifying the type. Example: { "id": 1234, "@type": "types.example.com/standard/id" }.
[[["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 endpoint facilitates the publishing of events to a ChannelConnection within a partner's project via a POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL is structured using gRPC Transcoding syntax and includes a \u003ccode\u003echannelConnection\u003c/code\u003e path parameter that specifies the origin of the published events.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain either an array of CloudEvents v1.0 objects under the \u003ccode\u003eevents\u003c/code\u003e field or a text representation of events in JSON format under the \u003ccode\u003etextEvents\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eA successful request to publish events will yield an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eThe authentication for this request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.channelConnections.publishEvents\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nmessageBuses.publish events to a ChannelConnection in a partner's project.\n\n### HTTP request\n\n`POST https://eventarcpublishing.googleapis.com/v1/{channelConnection=projects/*/locations/*/channelConnections/*}:publishEvents`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body is empty.\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](/docs/authentication#authorization-gcp)."]]