Skip to main content
PUT
/
file
/
{file_id}
/
namespaces
Update file namespace assignments
curl --request PUT \
  --url https://api.vidnavigator.com/v1/file/{file_id}/namespaces \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "namespace_ids": [
    "64a1b2c3d4e5f6789..."
  ]
}
'
{
  "status": "success",
  "message": "<string>"
}
Set which namespaces a file belongs to. This replaces any existing namespace assignments for the file.

Overview

Use this endpoint to move a file between namespaces or assign it to multiple namespaces at once. Pass an empty array to remove all namespace assignments.

Example Request

curl -X PUT "https://api.vidnavigator.com/v1/file/file_abc123/namespaces" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "namespace_ids": ["64a1b2c3d4e5f6789abc0002", "64a1b2c3d4e5f6789abc0003"]
  }'

Success Response

{
  "status": "success",
  "message": "File namespaces updated successfully"
}

Authorizations

X-API-Key
string
header
required

API key authentication. Include your VidNavigator API key in the X-API-Key header.

Path Parameters

file_id
string
required

The ID of the file to update

Body

application/json
namespace_ids
string[]
required

List of namespace IDs to assign to this file

Example:
["64a1b2c3d4e5f6789..."]

Response

File namespaces updated successfully

status
enum<string>
Available options:
success
message
string