Submit a workspace-creation task¶
Submit the workspace creation task. After the request is accepted, the task record is returned and the workspace is created in the background.
POST $CLOUDSIGMA_API_BASE/workspaces/creations
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First determine the name of the new workspace. Prepare personal access token.
Request body¶
Replace $CLOUDSIGMA_API_KEY and $WORKSPACE_NAME with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/workspaces/creations" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "'"$WORKSPACE_NAME"'"
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The name of the workspace to be created. It cannot be empty after removing leading and trailing blanks. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"id": "creation_01",
"name": "分析工作区",
"status": "pending",
"created_at": "2026-08-28T09:00:00Z",
"updated_at": "2026-08-28T09:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
string |
Create a task ID. |
|
string |
The name of the workspace to be created. |
|
string |
Task status: |
|
string |
Created workspace ID. Omit if it has not been successfully created. |
|
string |
Error code on failure. Omitted if not failed. |
|
string |
Task creation time. |
|
string |
Task update time. |
|
string |
Description of failure reason. Omitted if not set. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "名称不能为空",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |