Rename a view, replace its definition or change its visibility. This playground calls the live API and will modify data.
Rename a view, replace its definition, or share it with the brand.
PUT https://api.commerceclarity.com/api/2026-05/entities/views/{id}Every field is optional: send only what changes. A private view can be updated only by its owner; a shared view by its owner or a brand manager (brand admin, workspace owner, or CommerceClarity staff). See Visibility and permissions.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Required | The view's _id. |
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Optional | New name, max 255 characters. Must not match another view the caller can see (422, error_code: "view_name_taken"). |
definition | object | Optional | Replacement grid configuration (filters, sort, columns). It replaces the whole stored definition. |
visibility | string | Optional | private or shared. Promoting to shared requires a contributing member. |
Changing visibility moves the view to the end of the target list: the brand's shared list, or the owner's private list. A brand manager who makes a teammate's shared view private hands it back to its owner and can no longer see it.
curl -X PUT "https://api.commerceclarity.com/api/2026-05/entities/views/664f1a2b3c4d5e6f7a8b9c0d" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{ "visibility": "shared" }'
curl -X PUT "https://api.commerceclarity.com/api/2026-05/entities/views/664f1a2b3c4d5e6f7a8b9c0d" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"definition": {
"filters": null,
"sort": [{ "field": "updated_at", "dir": "desc" }],
"columns": [{ "colId": "cc_title", "visible": true, "order": 0 }]
}
}'
{
"status": "success",
"data": { /* the updated view */ }
}The full field list is in The view object.
| Trigger | Status | Message |
|---|---|---|
| The id doesn't exist, belongs to another brand, or is another user's private view | 404 | View not found. |
| Updating another user's shared view without being a brand manager | 403 | You are not allowed to edit this view. |
Promoting to shared without being a contributing member | 403 | You are not allowed to share a view in this brand. |
| The new name is already used by a view the caller can see | 422 | A view with this name already exists. |
A field has the wrong type, or visibility is not private / shared | 422 | The validation message. |