Modify space details
Updates the details about a space.
This operation requires space_update privilege
or oz_spaces_update admin privilege.
Example cURL requests
Change space name
curl -u username:password -H "Content-type: application/json" \
-X PATCH -d '{"name": "new_space12"}' \
https://$ZONE_HOST/api/v3/onezone/spaces/$SPACE_ID
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Space Id. |
Request body
Space parameters
| Property | Type & Description |
|---|---|
name string The new name of the space. | |
description string (SpaceDescription) Space description in markdown (.md) format. | |
organizationName string (SpaceOrganizationName) Name of the organization responsible for space management. | |
tags array of strings A list of short keywords or phrases that helps to understand the purpose of a space. Available space tags can be retrieved from the configuration endpoint. | |
advertisedInMarketplace boolean (SpaceAdvertisedInMarketplace) Specifies whether the space should be publicly advertised in the Space Marketplace. | |
marketplaceContactEmail string (SpaceMarketplaceContactEmail) Email address that will be used for notifying the person responsible for space management in the Marketplace about new membership requests. This field is visible only to space members with both | |
Request Examples
onezone-rest-cli modifySpace id=b752ceafabb662b4e5728b2ded25cdd1 name=="New Space Name"Responses
Space has been updated successfully.
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."
}
}