Skip to main content
POST
/
{namespace}
/
{repo_name}
/
workspaces
/
{workspace_id}
/
files
/
restore
Unstage files
curl --request POST \
  --url https://hub.oxen.ai/{namespace}/{repo_name}/workspaces/{workspace_id}/files/restore \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  "images/train/revert_me.jpg",
  "data/config.json"
]
'
{
  "status": "<string>",
  "status_message": "<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

Body

application/json

List of paths to restore/unstage from the workspace staging area

Response

Files restored from staging

status
string
required
status_message
string
required
oxen_version
string | null