otcbot[bot] 4317c860a8
Update content (#31)
Changes to ma_api from doc-exports#1


This is an automatically created Pull Request for changes to ma_api in opentelekomcloud-docs/doc-exports#1.
Please do not edit it manually, since update to the original PR will overwrite local changes.
Original patch file, as well as complete rst archive,  can be found in the artifacts of the opentelekomcloud-docs/doc-exports#1

Reviewed-by: Vineet Pruthi <None>
2022-05-02 14:51:57 +00:00

2.8 KiB

original_name

DeleteWorkspace.html

Deleting a Workspace

Function

This API is used to delete a workspace.

URI

DELETE /v1/{project_id}/workspaces/{workspace_id}

Table 1 Path parameters
Parameter Mandatory Type Description
project_id Yes String Project ID. For details about how to obtain the project ID, see Obtaining a Project ID <modelarts_03_0147>.
workspace_id Yes String Workspace ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters
Parameter Type Description
workspace_id String Workspace ID, which is a 32-bit UUID generated by the system without hyphens (-). The ID of the default workspace is 0.

Example Requests

Deleting a Workspace

DELETE https://{endpoint}/v1/{project_id}/workspaces/{workspace_id}

Example Responses

Status code: 200

OK

{
  "workspace_id" : "***05d1a553b4e188ea878e7dcb85***"
}

Status Codes

Status Code Description
200 OK
400 BadRequest
403 Forbidden
500 InternalServerError

Error Codes

See Error Codes <modelarts_03_0095>.