POST v1/digitalfiles/{id}/rename

This method requires authentication.

Renames a DigitalFile.

Request Information

Parameters

NameDescriptionAdditional information
id ID of the DigitalFile to rename.

Define this parameter in the request URI.

renameRequest Object containing the old name and new name of the file.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "oldName": "sample string 1",
  "newName": "sample string 2"
}

application/xml, text/xml

Sample:
<DigitalFileRenameRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.Controllers.api.v1">
  <NewName>sample string 2</NewName>
  <OldName>sample string 1</OldName>
</DigitalFileRenameRequest>