Modifying a Workspace
Function
This API is used to modify workspaces.
URI
PUT /v1/{project_id}/instances/{instance_id}/workspaces/{workspace_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
instance_id |
Yes |
String |
Instance ID. |
workspace_id |
Yes |
String |
Workspace ID. For how to obtain it, see Obtaining a Workspace ID. |
project_id |
Yes |
String |
Project ID. For how to obtain a project ID, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Obtain a user token by calling IAM's API. X-Subject-Token in the response header is the desired user token. For how to obtain a token, see Authentication. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
configs |
No |
Map<String,String> |
Workspace attribute configuration.
|
name |
Yes |
String |
Workspace name. |
description |
No |
String |
Workspace description. |
eps_id |
Yes |
String |
ID of the enterprise project the workspace belongs to. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
String |
Workspace ID. |
Example Request
Modify the information of the workspace with ID xxxxaaa59ce841f8b4cc2c1305c1xxxx in a project.
/v1/{project_id}/instances/{instance_id}/workspaces/xxxxaaa59ce841f8b4cc2c1305c1xxxx { "configs" : { "mode" : "0", "field_show_type" : "0", "only_admin_create_datasource" : "0", "works_authorized" : "0", "works_public" : "1", "works_view" : "0" }, "name": "Test name", "description": "This is a test description.", "eps_id" : "0" }
Example Response
{ "id" : "xxxxaaa59ce841f8b4cc2c1305c1xxxx" }
Status Codes
Status Code |
Description |
---|---|
200 |
- |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot