Portabase DashboardAPIOrganizations
Create a storage channel owned by an organization
Credentials in config are stored and never returned by the API.
POST
Credentials in config are stored and never returned by the API.
apiKeyAuthheader
x-api-key<token>API key generated from the Portabase dashboard. Pass as the x-api-key header.
id*stringFormat
uuidapplication/json- body
name*stringLength
5 <= length <= 40enabled?booleanDefault
trueprovider*"s3"Value in
"s3"config*Created storage channel
application/json- response
data*Example Request
curl -X POST 'https://portabase.example.com/api/v1/organizations/123e4567-e89b-12d3-a456-426614174000/storage-channels' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "provider": "s3", "config": { "endPointUrl": "string", "accessKey": "string", "secretKey": "string", "bucketName": "string" }}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "provider": "string", "enabled": true, "owned": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}