Portabase Logo
Portabase DashboardAPIStorage channels

Set the organizations allowed to use a global storage channel (instance administrators)

Replaces the list. Removing an organization keeps that organization's policies that already use the channel.

PUT
/storage-channels/{channelId}/organizations

Replaces the list. Removing an organization keeps that organization's policies that already use the channel.

Authorization

apiKeyAuth
headerx-api-key<token>

API key generated from the Portabase dashboard. Pass as the x-api-key header.

Path Parameters

channelId*string
Formatuuid

Request Body

application/json
  1. body
organizationIds*array<>

Response Body

Organizations allowed to use the channel

application/json
  1. response
data*
Example Request
curl -X PUT 'https://portabase.example.com/api/v1/storage-channels/123e4567-e89b-12d3-a456-426614174000/organizations' \  -H 'Content-Type: application/json' \  -d '{  "organizationIds": [    "fd846392-cc8b-40e0-8cea-70228902ca0a"  ]}'
Example Response
{  "data": {    "organizationIds": [      "fd846392-cc8b-40e0-8cea-70228902ca0a"    ]  }}