XOMNI: Experience Omni-Channel

Last Updated: February 19, 2016

The API is designed to provide file upload mechanisms with small chunks (Up to 4 MB). Using this API, you can finalize file upload process by giving unique keys of chunk file uploads. In order to create uploaded file in temporary storage successfully, you should provide unique keys in chunk upload order.

Request

[
   "YWRiMzliMzYtN2VjNC00MDQzLWFiZWEtNDExN2U5OGZjZWU4",
   "NGY4NDRjMTItOTRiYi00Mzg3LWEzYzMtOTI4ZjM0M2QwNWZj",
   "NmM0OTgzNGMtYjgxZS00MjgwLTlhNTgtMDkxZjMwZTc4NjM1",
   "NTliMjM0YTktN2I1My00MDAzLWI4ZmEtNTNlMGFiNzk2YTMx"
]
HTTP Method Resource URI
POST https://{tenantName}.api.xomni.com/private/asset/temp?fileName={fileName}

URI Parameters

Parameter Name Description Type Conditions
filename The unique name of the file. String

Request Body Description

You should send chunk file upload unique keys orderly as string array.

Request Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.
Accept
Includes minor version header.
Sample: application/vnd.xomni.api-v4-0, */*
Authorization
Access or identity token taken from oauth APIs.
Sample: Bearer dc8f1dcdbe454da8a25621839a93569337522968019e4bd7becd6e01285444da

Response

"4"

Response Body Description

The unique id of uploaded file to the temporary storage.

Response Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.

Status Codes

A successful operation returns status code 200 (OK) for POST operations. Possible response status codes are as listed below:

Status Code Description
201 (Created) Finalize operation is successful. You can find unique id that represents uploaded file in temporary storage.
409 (Conflict) There is an existing file for given file name.