POST api/internal/order/update-file-status

Update status on a given file that has been processed.

Request Information

URI Parameters

None.

Body Parameters

Updated information about a file.

Kartverket.Geonorge.Download.Models.Api.Internal.UpdateFileStatusRequest
NameDescriptionTypeAdditional information
FileId

The file id

string

None.

Status

Valid values: WaitingForProcessing, ReadyForDownload, Error

string

None.

DownloadUrl

Url to the processed file

string

None.

Message

Optional message, should be provided for errors.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FileId": "sample string 1",
  "Status": "sample string 2",
  "DownloadUrl": "sample string 3",
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<UpdateFileStatusRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FileId>sample string 1</FileId>
  <Status>sample string 2</Status>
  <DownloadUrl>sample string 3</DownloadUrl>
  <Message>sample string 4</Message>
</UpdateFileStatusRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateFileStatusRequest'.

Response Information

Resource Description

HTTP status codes 200 if ok.

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.