API Playground

Rename a view, replace its definition or change its visibility. This playground calls the live API and will modify data.

Authentication Required

You need to Login to test the API playground

Update view

Rename a view, replace its definition, or share it with the brand.

Endpoint URL
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.

Path Parameters

ParameterTypeRequiredDescription
idstringRequiredThe view's _id.

Body parameters

ParameterTypeRequiredDescription
namestringOptionalNew name, max 255 characters. Must not match another view the caller can see (422, error_code: "view_name_taken").
definitionobjectOptionalReplacement grid configuration (filters, sort, columns). It replaces the whole stored definition.
visibilitystringOptionalprivate 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.

Request Examples

Share a view with the brand
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" }'
Save the current grid layout onto an existing view
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 }]
    }
  }'

Response Example

Success Response
{
  "status": "success",
  "data": { /* the updated view */ }
}

The full field list is in The view object.

Errors

TriggerStatusMessage
The id doesn't exist, belongs to another brand, or is another user's private view404View not found.
Updating another user's shared view without being a brand manager403You are not allowed to edit this view.
Promoting to shared without being a contributing member403You are not allowed to share a view in this brand.
The new name is already used by a view the caller can see422A view with this name already exists.
A field has the wrong type, or visibility is not private / shared422The validation message.