XOMNI: Experience Omni-Channel

Last Updated: May 05, 2016

The API creates a new data storage item and returns it.

Request

{  
   "Key":"SampleKey",
   "Value":"SampleValue",
   "IsPublic":true
}
HTTP Method Resource URI
POST https://{tenantName}.api.xomni.com/company/stores/{storeId}/storage

URI Parameters

Parameter Name Description Type Conditions
storeId Id of the store Integer

"current" magic word can be used for storeId parameter to point the store attached to licence.

Request Body Description

Parameter Name Description Type Conditions
Key Data storage key. String
Value Data storage value. String
IsPublic A Boolean field indicating whether the data storage item is accessable from other devices or not. Boolean

Request Headers

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

Response

{  
   "Data":{  
      "Key":"SampleKey",
      "Value":"SampleValue",
      "IsPublic":true,
      "StoreId":1,
      "TimeStamp":"YXJtdXQ="
   }
}

Response Body Description

Parameter Name Description Type
Data.StoreId Id of the store. Number
Data.Key Data storage key. String
Data.Value Data storage value. String
Data.IsPublic A Boolean field indicating whether the data storage item is accessable from other devices or not. Boolean
Data.TimeStamp Timestamp value for concurrency support. Array

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
409 (Conflict) Storage key already exists.