post https://app.ecwid.com/api/v3//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
Field | Type | Description |
---|---|---|
success | boolean | true 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 Status | Meaning |
---|---|
404 | The key is not found |
415 | Unsupported content-type: expected application/json or text/json |
500 | Cannot retrieve the data because of an error on the server |
Error response body (optional)
Field | Type | Description |
---|---|---|
error | string | Type of the error |
errorMessage | string | Error message |