Move file
Moves or renames a file from the current path to a new path specified in the new_path parameter.
Requirements:
- The
ref_idmust be a workspace ID - Requires a client ID header
Validation: Both paths are normalized and validated before the operation.
Returns:
404 Not Foundif the source path doesn’t exist202 Acceptedon successful move
Documentation Index
Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
This API uses OAuth 2 with the implicit grant flow
Headers
The unique id of the client making this request
Path Parameters
The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
3 - 128"example_id"
An ID of a workspace, branch or commit.
3 - 128"example_id"
A path to a file inside the repository.
"/path/to/file"
Query Parameters
The new path to where the file has moved
"/path/to/file"
Response
File moved

