Files

This renames an uploaded file by changing the fileUri. After renaming the file, it will only be identified by the new fileUri that you provide.

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

Request

  • Base URL
    https://api.smartling.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.

Example:84c012a33

A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.

Request body multipart/form-data

fileUristring required

URI path of a source file within a Smartling project.

newFileUristring required

URI path of a source file within a Smartling project.

Example request

{
  "fileUri": "/content/en/home.json",
  "newFileUri": "/content/en/home.json"
}

Response

OK

Changes

    • breaking

      added the pattern ^[a-z0-9]{9}$ to the path request parameter projectId

    • breaking

      added to the request property allOf list

    • breaking

      added to the request property allOf list

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • info

      the request property type was generalized from string to no type

    • info

      the request property type was generalized from string to no type