Add data to storage

Use this method to put a new data into the storage. If the key you specify in the request already exists, the corresponding value in the storage will be replaced with the submitted one. You can also create app public config data by using public as storage key in your request.

Request

A key for the new key-value pair will be taken from the request URL. The data (value) is the request body (1MB max)

Response

A JSON object with the status of operation

Status

FieldTypeDescription
successbooleantrue if the data has been added to the storage, false otherwise

Errors

In case of error, Ecwid responds with an error HTTP status code and JSON-formatted body containing error description

HTTP codes

HTTP StatusMeaning
404The key is not found
415Unsupported content-type: expected application/json or text/json
500Cannot retrieve the data because of an error on the server

Error response body (optional)

FieldTypeDescription
errorstringType of the error
errorMessagestringError message
Language
Authorization
Query