POST api/File/RenameFile/{id}?newName={newName}

Renaming a file

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Media Item ID

integer

Required

newName

New filename

string

Required

Body Parameters

None.

Response Information

Resource Description

Result containing the flag of successful operation

ObjResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

None.

Error

Error description

string

None.

Success

Flag of successful operation

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": true,
  "error": "sample string 2",
  "success": true,
  "errorCode": 4
}

Parameter Information

newName

Property Description
Length (Int32)

				
Chars (Char)