Skip to main content
POST
/
admin
/
views
/
{entity}
/
configurations
/
{id}
cURL
curl -X POST '{backend_url}/admin/views/{entity}/configurations/{id}' \
-H 'Authorization: Bearer {jwt_token}' \
-H 'Content-Type: application/json' \
-d '{
  "is_system_default": true
}'
{
"view_configuration": {
"id": "<string>",
"entity": "<string>",
"name": "<string>",
"user_id": "<string>",
"is_system_default": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"configuration": {
"visible_columns": [
"<string>"
],
"column_order": [
"<string>"
],
"column_widths": {},
"filters": {},
"sorting": {
"id": "<string>",
"desc": true
},
"search": "<string>"
}
}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

entity
string
required

The entity to update its view configuration (for example, orders).

id
string
required

The view configuration's ID.

Body

application/json

The details to update in a view configuration.

set_active
boolean

Whether the view is set as active.

name
string

The view's name.

is_system_default
boolean

Whether the view is the system default.

configuration
object

The view's configuration.

Response

OK

The details of a view configuration.

view_configuration
object
required

The details of a view configuration.