FileController.CopyFile Method |
Copies 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[HttpPostAttribute("Copy/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<CopyResultData> CopyFile(
Guid id,
[FromBodyAttribute] CopyEntryOptions options,
Guid? sessionId = null
)
<HttpPostAttribute("Copy/{id}")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(405)>
<ProducesResponseTypeAttribute(409)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Function CopyFile (
id As Guid,
<FromBodyAttribute> options As CopyEntryOptions,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of CopyResultData)
public:
[HttpPostAttribute(L"Copy/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
ActionResult<CopyResultData^>^ CopyFile(
Guid id,
[FromBodyAttribute] CopyEntryOptions^ options,
Nullable<Guid> sessionId = nullptr
)
[<HttpPostAttribute("Copy/{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(405)>]
[<ProducesResponseTypeAttribute(409)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
member CopyFile :
id : Guid *
[<FromBodyAttribute>] options : CopyEntryOptions *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<CopyResultData>
Parameters
- id
- Type: System.Guid
The ID of the file to move. - options
- Type: Dundas.BI.WebApi.Models.CopyEntryOptions
The options for copying this file. - sessionId (Optional)
- Type: System.Nullable<Guid>
ID of the current session.
Return Value
Type:
ActionResult<CopyResultData>The operation completed successfully. The payload contains a
CopyResultData object containing additional result details of the copy operation including the copy's ID.
See Also