Skip to main content
POST
/
{namespace}
/
{repo_name}
/
workspaces
/
{workspace_id}
/
files
/
{path}
Add file to workspace
curl --request POST \
  --url https://hub.oxen.ai/{namespace}/{repo_name}/workspaces/{workspace_id}/files/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "status": "<string>",
  "status_message": "<string>",
  "paths": [
    "<string>"
  ],
  "oxen_version": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

The namespace of the repository

repo_name
string
required

The name of the repository

workspace_id
string
required

The UUID of the workspace

path
string
required

The directory to upload the file to

Body

multipart/form-data

Multipart upload of file. Form field 'file' should be the file content.

file
file
required

Response

File successfully uploaded to workspace

status
string
required
status_message
string
required
paths
string[]
required
oxen_version
string | null