Saving data by key to the workspace or module storage
Important: This API is experimental. It may be changed or removed in future versions.
To call this method, the user must have administrator privileges.
Request
POST /pub/v1/storage/{namespace}/{key}
Path parameters
Parameter name | Value | Description | Additional |
---|---|---|---|
namespace | string | Workspace code |
Required |
key | string | Key |
Required |
Request body
The resource sent in the request body is Saving data by key to the workspace or module storage — Request. It contains the following writable properties:
{
"data": "string"
}
Properties
Name | Type | Description | Additional |
---|---|---|---|
data | string |
Data to save |
Optional |
Authorization
This request requires the use of one of following authorisation methods:
API key
Response
The following HTTP status codes may be returned:
Status code | Description | Resource |
---|---|---|
200 | OK Response model for saving data by key |
Response model for saving data by key (Saving data by key to the workspace or module storage) |
400 | Bad Request Invalid request parameters |
|
403 | Forbidden The user on whose behalf the data is requested must have the administrator’s permissions |