XOMNI: Experience Omni-Channel

Last Updated: February 19, 2016

The API updates an existing store storage data and returns it.

Request

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

URI Parameters

Parameter Name Description Type Conditions
storeId Id of the store Integer

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
TimeStamp Timestamp value for concurrency support. 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

{  
   "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 PUT operations. Possible response status codes are as listed below:

Status Code Description
403 (Forbidden) Store storage item is private. Only related licence can access this item.
404 (Not Found) Specified store storage is empty.
409 (Conflict) Specified concurrency token (timestamp) did not match.