Create a new project in a workspace.
(
&self,
workspace_slug: &str,
req: &CreateProjectRequest,
)
| 355 | |
| 356 | /// Create a new project in a workspace. |
| 357 | pub async fn create_project( |
| 358 | &self, |
| 359 | workspace_slug: &str, |
| 360 | req: &CreateProjectRequest, |
| 361 | ) -> Result<ProjectInfo, RemoteError> { |
| 362 | self.post(&format!("/workspaces/{}/projects", workspace_slug), req) |
| 363 | .await |
| 364 | } |
| 365 | |
| 366 | /// Get a single project by slug. |
| 367 | pub async fn get_project( |