Set user space alias Deprecated
Sets the alias (user defined name) for a specific space.
NOTE: Space aliases are not yet implemented - setting an alias is possible but will have no effect.
This operation can be invoked on behalf of the current user only.
Example cURL requests
Set space alias
curl -u username:password -X PUT -d '{"alias": "Space alias"}' \
-H 'Content-type: application/json' \
https://$HOST/api/v3/onezone/user/spaces/$SPACE_ID/alias
Path parameters
| Parameter | Type & Description |
|---|---|
| sid required | string Space Id. |
Request body
New space alias.
| Property | Type & Description |
|---|---|
alias string User defined name for the space. | |
Request Examples
{
"alias": "My space name"
}Responses
Space alias has been successfully set.
| Property | Type & Description |
|---|---|
alias string User defined name for the space. | |
Example
{
"alias": "My space name"
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}