Skip to main content
PATCH
/
api
/
v1
/
files
/
move
Move/rename file
curl --request PATCH \
  --url https://neo.api.projectdiscovery.io/api/v1/files/move \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "new_key": "<string>"
}
'
{
  "error": "<string>",
  "message": "<string>",
  "new_key": "<string>",
  "old_key": "<string>",
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Query Parameters

project_id
string<uuid>

Optional project ID for project-scoped sandbox files

Body

application/json
key
string
required

Source file key

new_key
string
required

Destination key/path

Response

File moved

error
string
message
string
new_key
string
old_key
string
success
boolean