Skip to content
Richard Thombs edited this page Aug 25, 2016 · 4 revisions

The Upload API allows TeamHaven Mobile clients to upload Pictures to the server. When a Picture is uploaded the server responds with a Guid which can be used as the Answer to a Picture Question.

POST /api/uploads

Upload a file to the server.

Response

The response body will be a string containing a Guid.

"1baba0de-e668-424a-abb4-2fcd10442bde"

Note: Uploaded files are purged from the server after 14 days.

HEAD /api/uploads/:guid

Check to see if a file still exists on the server.

Response

The HTTP Status Code is used to indicate the presence of the file:

204 - No Content - Indicates that the file exists on the server.
404 - Not Found - Indicates that the file does not exist on the server.

Clone this wiki locally