CodeLibraryControllerUpdateCodeLibraryContentFromFile Method

Updates an existing code library content from a file. This API call expects form file inside the request body.

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("File/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(415)]
[ProducesResponseTypeAttribute(440)]
[FormFileAttribute]
public ActionResult<CodeLibraryData> UpdateCodeLibraryContentFromFile(
	Guid id,
	Guid? sessionId = null
)

Parameters

id
Type: SystemGuid
The ID of the code library to update.
sessionId (Optional)
Type: SystemNullableGuid
The current session ID.

Return Value

Type: ActionResultCodeLibraryData
The operation completed successfully. The payload contains a CodeLibraryData object.
Remarks
To call this method pass HttpContent of type MultipartFormDataContent to the PostAsync(String, HttpContent). Add content of a file as a StreamContent to the MultipartFormDataContent parameter. When generated, the code library name is taken from the Name, or if it is empty, from the file name.
See Also