---
title: "Set Connection Sharing"
method: PUT
path: "/v1/workspaces/{workspace}/openapi-connections/{connection_id}/sharing"
tags: ["v1", "protected", "openapi-connections"]
---

# Set Connection Sharing

`PUT /v1/workspaces/{workspace}/openapi-connections/{connection_id}/sharing`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/agentarea/apis/agentarea-api/docs/v1/workspaces/:workspace/openapi-connections/:connection_id/sharing/put.ts> (a function with typed inputs; its response is checked against the schema)

Share the connection with the workspace, or make it its owner's again.

## Path parameters

- `connection_id` string, uuid, required
- `workspace` string, required: Slug of the workspace the request acts in

## Request body

- ConnectionSharingRequest
  - `shared` boolean, required

## Response `200`

Successful Response

- OpenAPIConnectionResponse
  - `auth_config_id` string, uuid, nullable
  - `available_tools` OpenAPIToolResponse[], required
    - `description` string, required
    - `inputSchema` object, required
    - `name` string, required
  - `base_url` string, nullable, required
  - `cost` object, nullable
  - `created_at` string, date-time, required
  - `custom_headers` HeaderOutput[], nullable
    - `name` string, required
    - `secret` boolean, required
    - `value` string, nullable
  - `custom_query_params` QueryParamOutput[], nullable
    - `name` string, required
    - `secret` boolean, required
    - `value` string, nullable
  - `description` string, nullable
  - `id` string, uuid, required
  - `is_owner` boolean
  - `last_dispatch` object, nullable
  - `managed_by` string, nullable
  - `name` string, required
  - `personal` boolean
  - `registry_item_id` string, uuid, nullable
  - `spec_url` string, nullable
  - `status` string, required
  - `updated_at` string, date-time, required
  - `url_variables` string[], nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-10** `4662804c264b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/openapi-connections/:connection_id/sharing/put.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) - [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentarea/apis/agentarea-api/revisions/7a4e10cf159f?raw)
