Move File
POST
/api/v1/files/move
const url = 'https://aura.strangeworks.com/api/v1/files/move';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"deployment_name":"example","dest_path":"example","project_id":"example","snapshot_id":"example","source":"deployment","source_path":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://aura.strangeworks.com/api/v1/files/move \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "deployment_name": "example", "dest_path": "example", "project_id": "example", "snapshot_id": "example", "source": "deployment", "source_path": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
FileEntry
One file in a container.
content_type/modified/source are populated where the container
can supply them: the workspace reads them from its ProjectFile index;
deployments and snapshots list straight from storage, so source is null
and content_type is derived from the extension.
object
Examplegenerated
{ "content_type": "example", "modified": "2026-04-15T12:00:00Z", "path": "example", "size": 1, "source": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}