Create a new project in a workspace.
(
&self,
workspace_slug: &str,
req: &CreateProjectRequest,
)
| 296 | |
| 297 | /// Create a new project in a workspace. |
| 298 | pub async fn create_project( |
| 299 | &self, |
| 300 | workspace_slug: &str, |
| 301 | req: &CreateProjectRequest, |
| 302 | ) -> Result<ProjectInfo, RemoteError> { |
| 303 | self.post(&format!("/workspaces/{}/projects", workspace_slug), req) |
| 304 | .await |
| 305 | } |
| 306 | |
| 307 | /// Get a single project by slug. |
| 308 | pub async fn get_project( |