Rename (/v1/file/rename)

This v1 API method is scheduled for deprecation October 1, 2017. Where possible, use File API v2

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

apiKey (required)

The API Key for your account. Available in the Smartling dashboard at Project Settings>API.

projectId (required)

The unique ID for your project. Available in the Smartling dashboard at Project Settings>API.

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 is successfully deleted. The response includes no data.

Examples