02 Save workspace settings
2.1 Description
PUT/workspaces/{code}
The returned data.workspace is the row re-read after saving, with exactly the same fields as the list.
2.2 Parameters
| Name | Category | Description |
|---|---|---|
name | Optional | Name. 1 to 100 characters, no line breaks |
timezone | Optional | Base time zone for scheduled publishing. Use an IANA name (e.g. Asia/Seoul) |
2.3 Request
curl -X PUT https://moacast.com/api/moacast/v1/workspaces/a1b2c3d4 \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"name":"Marketing","timezone":"Asia/Tokyo"}'2.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"message": "...",
"data": {
"workspace": {
"code": "a1b2c3d4",
"name": "Marketing",
"timezone": "Asia/Tokyo",
"status": "ACTIVE",
"created_at": "2026-09-25 23:13:51"
}
}
}2.5 Field
| Field | Type | Description |
|---|---|---|
workspace | object | The row after the change. Same fields as one entry of the workspace list |
2.6 Failed
| Code | HTTP | When |
|---|---|---|
1004 | 400 | The name or time zone doesn't meet the rules. Which field is reported in field |
1004 | 400 | No fields to change were sent |
1001 | 401 | Header is missing or the token is invalid |
2000 | 404 | No workspace with that code exists, or this token can't access it |
5000 | 500 | Couldn't save |
