Rename

POST - /files-api/v2/projects/{projectId}/file/rename

Renames an uploaded file by changing the fileUri. After renaming the file, the file will only be identified by the new fileUri you provide.

Parameters

fileUri (required)

Current value that uniquely identifies the file.

newFileUri (required)

The new value for fileUri. We recommend that you use file path + file name, similar to how version control systems identify the file. Example: /myproject/i18n/ui.properties. This must be a fileUri that does not exist in the Smartling database.

Returns

Smartling returns a standard response format. The response will contain a SUCCESS response code indicating the file has been successfuly renamed. The response includes no data.

Examples