POST api/Upload

Create placeholder records for uploading a file.

Request Information

URI Parameters

None.

Body Parameters

Description of the file. Only the Description field is required.

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-10T15:57:19.3932344+00:00",
  "CreatedDate": "2024-09-10T15:57:19.3932344+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-10T15:57:19.3932344+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-10T15:57:19.3932344+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

Data needed to upload the file directly to content service storage using LicensingContentService.AzureStorage assembly.

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.