Update Resource (v1)
Method + Path
PATCH /v1/workspace/:workspaceId
Actual backend path: /v1/workspace/:workspaceId
Description
Update Resource
Authentication
Not required
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Path parameter: workspaceId |
Request Body
Request body
{
"currency": "value1"
}
Response (200)
Response data
{
"resource": {
"id": "507f1f77bcf86cd799439011",
"name": "Updated Resource",
"updatedAt": "2024-01-15T10:00:00Z"
}
}
Common Errors
- 400 Bad Request: Invalid request body or query parameters
- 404 Not Found: Resource not found
- 422 Unprocessable Entity: Validation errors
- 500 Internal Server Error: Server error