This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the lockedBy user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, lastModifiedTimestamp, last_modified_by. Any existing lock is on this integration is released.
HTTP request
POST https://integrations.googleapis.com/v1/{name=projects/*/locations/*/products/*/integrations/*/versions/*}:publish
[[["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 2023-02-22 UTC."],[[["This endpoint publishes a specified integration version, identified by a path parameter `name` in the format `projects/{project}/locations/{location}/integrations/{integration}/versions/{version}`."],["The HTTP request uses `POST` with a URL that follows gRPC Transcoding syntax, and both the request and response bodies must be empty."],["Publishing is not allowed if the integration is in an `ARCHIVED` or `ACTIVE` state, or if a `DRAFT` version is locked by a different user."],["Successful publishing updates audit fields like `last_published_timestamp`, `last_published_by`, `lastModifiedTimestamp`, and `last_modified_by`, while releasing any existing integration lock."],["Authorization requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope and one of the following IAM permissions: `integrations.apigeeIntegrationVers.deploy`, `integrations.integrationVersions.deploy`, or `integrations.securityIntegrationVers.deploy`."]]],[]]