ResourceControllerStoreData Method

Stores binary file data for different types of files. This API call expects form files 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<FileData[]> StoreData(
	Guid? id = null,
	Guid? projectId = null,
	ObjectType resourceType = ObjectType.Unknown,
	Guid? parentFolderId = null,
	Guid? sessionId = null
)

Parameters

id (Optional)
Type: SystemNullableGuid
The ID of the resource if this is an update call.
projectId (Optional)
Type: SystemNullableGuid
The project ID.
resourceType (Optional)
Type: Dundas.BIObjectType
Type of the resource. The only accepted types are ImageResource, DataResource, MapResource and DiagramResource. However if the file types are not known ahead of time then Unknown can be used and the type will attempt to be detected from the file extension.
parentFolderId (Optional)
Type: SystemNullableGuid
The parent folder's ID.
sessionId (Optional)
Type: SystemNullableGuid
The ID of the session.

Return Value

Type: ActionResultFileData
The operation completed successfully. The payload contains an array of FileData objects.
See Also