FileController.RenameFile Method |
Renames the file with the specified ID.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpPutAttribute("Rename/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult RenameFile(
Guid id,
[FromBodyAttribute] string newName,
Guid? sessionId = null
)
<HttpPutAttribute("Rename/{id}")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(405)>
<ProducesResponseTypeAttribute(409)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Function RenameFile (
id As Guid,
<FromBodyAttribute> newName As String,
Optional sessionId As Guid? = Nothing
) As ActionResult
public:
[HttpPutAttribute(L"Rename/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
ActionResult^ RenameFile(
Guid id,
[FromBodyAttribute] String^ newName,
Nullable<Guid> sessionId = nullptr
)
[<HttpPutAttribute("Rename/{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(405)>]
[<ProducesResponseTypeAttribute(409)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
member RenameFile :
id : Guid *
[<FromBodyAttribute>] newName : string *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult
Parameters
- id
- Type: System.Guid
The ID of the file to rename. - newName
- Type: System.String
The new name of the file. - sessionId (Optional)
- Type: System.Nullable<Guid>
The ID of the current session.
Return Value
Type:
ActionResult
See Also