Modify space details
Modifies the space import/update strategies.
Example cURL requests
Modify space support size
curl -H "X-Auth-Token: $TOKEN" -X PATCH https://$OP_PANEL_HOST/api/v3/onepanel/provider/spaces/$SPACE_ID \
-H "Content-Type: application/json" -d '{"size": 30000000}'
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of a space which details should be modified. |
Request body
| Property | Type & Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
size integer The storage space size in bytes that provider is willing to assign to the space. | |||||||||||||
autoStorageImportConfig object (AutoStorageImportConfig) Configuration of auto storage import mechanism. The auto import is based on scans - gradual traversing of the file system and registration of files and directories.
| |||||||||||||
accountingEnabled boolean Indicates if accounting is enabled. The accounting mechanism utilizes directory statistics to keep track of quota usage within a space for the corresponding supporting provider. | |||||||||||||
dirStatsServiceEnabled boolean Indicates if the directory statistics service is enabled. The service gathers statistics concerning logical and physical directory size, file count and update times. It cannot be disabled if accounting is enabled. | |||||||||||||
Responses
The space details has been successfully changed.
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object (ErrorDetails) Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Unauthorized request.
Forbidden request.
The user does not exist.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object (ErrorDetails) Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Services needed to fulfill this request are not running.