Update a Workspace
This end point updates an existing workspace (“application”).
PUT /openapi/v1/applications/{application_id}
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
application_id |
string |
The unique identifier for the workspace. |
The JSON query body contains the following keys
Name |
Type |
Description |
---|---|---|
name |
string |
(optional) The updated name for the workspace. |
descrip |
string |
(optional) The updated description for the workspace. |
primary |
string |
(optional) Set to ‘true’ to make the workspace primary. Set to ‘false’ to make the workspace secondary. |
Response object: The updated workspace object for the specified ID.
Sample python code
application_id = '5d02b493755f0237a3d6e078'
req_payload = {
'name': 'Updated Name',
'description': 'Updated Description',
'primary': 'true'
}
resp = restclient.put('/applications/%s' % application_id,
json_body=json.dumps(req_payload))