PUT api/Upload

Updates the status for the file to support Async notifications

Request Information

URI Parameters

None.

Body Parameters

Description of the file. All fields shoudl be used.

File
NameDescriptionTypeAdditional information
FileId

string

None.

Description

string

None.

MimeType

string

None.

Extension

string

None.

ReportName

string

None.

IsSubscribed

boolean

None.

IsComplete

boolean

None.

IsError

boolean

None.

LastDownloadedUtc

date

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "FileId": "sample string 1",
  "Description": "sample string 2",
  "MimeType": "sample string 3",
  "Extension": "sample string 4",
  "ReportName": "sample string 5",
  "IsSubscribed": true,
  "IsComplete": true,
  "IsError": true,
  "LastDownloadedUtc": "2024-09-08T06:22:29.4748981+00:00",
  "CreatedDate": "2024-09-08T06:22:29.4748981+00:00"
}

application/xml, text/xml

Sample:
<File xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Commerce.Reporting.AzureContentService.Contracts">
  <CreatedDate>2024-09-08T06:22:29.4748981+00:00</CreatedDate>
  <Description>sample string 2</Description>
  <Extension>sample string 4</Extension>
  <FileId>sample string 1</FileId>
  <IsComplete>true</IsComplete>
  <IsError>true</IsError>
  <IsSubscribed>true</IsSubscribed>
  <LastDownloadedUtc>2024-09-08T06:22:29.4748981+00:00</LastDownloadedUtc>
  <MimeType>sample string 3</MimeType>
  <ReportName>sample string 5</ReportName>
</File>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Success to pubish to the Signalr Hub

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.