DevZero Logo
DevZero

Create Storage Volume Link

Link a volume for the current user

POST
/v2/teams/{team_id}/storage/volumes/{storage_volume_id}/links
/v2/teams/{team_id}/storage/volumes/{storage_volume_id}/links

Request Body

application/jsonRequired

create storage volume link body

namespacestring

namespace to link volume to

Default: "default"

Header Parameters

Authorization
Required
string

Value: "Bearer <token>"; visit the "User Settings" page in the DevZero dashboard to generate a token

Path Parameters

team_id
Required
string

ID of team

storage_volume_id
Required
string

ID of storage volume

curl -X POST "https://api.devzero.io/backend/v0/v2/teams/string/storage/volumes/string/links" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "namespace": "default"
  }'

created volume link

{
  "id": "string",
  "namespace": "string",
  "storage_volume_id": "string"
}