Create a File

FileService

Create a File

 

This operation allows you to create a new named file in the servers storage folder. If the file already exists the operation will fail.

 

HTTP method

POST

 

URI

/FileService/<filename>

 

Request headers

Host: <server_dns_or_ip>[:<port>]

Accept: <mime_type>

Content-Length: <int>

Content-Type: text/plain

 

Request body

A string containing the records from the text file.

 

Response headers

Content-Length: 0

Date: <date_time>

Location: <url_to_retrieve_file>

Server: Microsoft-HTTPAPI/2.0

ServerFileSpec: <file_spec>

 

Response body

None

 

HTTP result codes

HTTP 201 (created) indicates that the file was created.

HTTP 403 (forbidden) indicates that the file already existed and was NOT updated.