---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}:manageSourceData"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}:manageSourceData"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}:manageSourceData

`POST /v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}:manageSourceData`

## Request

- Base URL: `https://apihub.googleapis.com`
- URL: `https://apihub.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/plugins/{pluginsId}/instances/{instancesId}:manageSourceData`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/apihub.readwrite`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/apihub.readwrite`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
- TypeScript: <https://skmtc.dev/google/apis/apihub/docs/v1/projects/:projectsId/locations/:locationsId/plugins/:pluginsId/instances/:instancesId:manageSourceData/post.ts> (a function with typed inputs; its response is checked against the schema)

Manages data for a given plugin instance.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `pluginsId` string, required
- `instancesId` string, required

## Request body

- GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest: The ManagePluginInstanceSourceData method's request.
  - `action` 'ACTION_UNSPECIFIED' | 'UPLOAD' | 'DELETE': Required. Action to be performed.
  - `data` string, byte: Required. Data to be managed.
  - `dataType` 'DATA_TYPE_UNSPECIFIED' | 'PROXY_DEPLOYMENT_MANIFEST' | 'ENVIRONMENT_MANIFEST' | 'PROXY_BUNDLE' | 'SHARED_FLOW_BUNDLE': Required. Type of data to be managed.
  - `relativePath` string: Required. Relative path of data being managed for a given plugin instance.

## Response `200`

Successful response

- GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse: The ManagePluginInstanceSourceData method's response.

## Changes

- **2026-11-08** `09b6c7d2247b`: 4 info
  - the security scope `https://www.googleapis.com/auth/apihub.readwrite` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/apihub.readwrite` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/apihub/changes/v1/projects/:projectsId/locations/:locationsId/plugins/:pluginsId/instances/:instancesId:manageSourceData/post.md)

---

[API](https://skmtc.dev/google/apis/apihub.md) - [All operations](https://skmtc.dev/google/apis/apihub/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/apihub/revisions/09b6c7d2247b?raw)
