Update an existing workspace.
(
&self,
slug: &str,
req: &UpdateWorkspaceRequest,
)
| 269 | |
| 270 | /// Update an existing workspace. |
| 271 | pub async fn update_workspace( |
| 272 | &self, |
| 273 | slug: &str, |
| 274 | req: &UpdateWorkspaceRequest, |
| 275 | ) -> Result<WorkspaceInfo, RemoteError> { |
| 276 | self.put(&format!("/workspaces/{}", slug), req).await |
| 277 | } |
| 278 | |
| 279 | /// Delete a workspace by slug. |
| 280 | pub async fn delete_workspace(&self, slug: &str) -> Result<(), RemoteError> { |