PATCH
/
v0
/
tile
/
specialized
curl --request PATCH \
  --url 'https://api.unify.ai/v0/tile/specialized?tile_type=None&tile_id=None&tab_id=None&name=None' \
  --header "Authorization: Bearer $UNIFY_KEY"
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "id": "123",
    "tab_id": "tab_456",
    "name": "Data Table",
    "type": "Table",
    "position": {
        "x": 0,
        "y": 0,
        "width": 6,
        "height": 4
    },
    "min_width": 2,
    "min_height": 2,
    "visible": true,
    "locked": false,
    "moved": false,
    "static": false,
    "table": "main_data",
    "auto_update": true,
    "freeze": false,
    "is_checkpoint": false,
    "table_tile": {
        "id": "table_123",
        "tile_id": "123",
        "table_type": "Data Table",
        "page_number": 2,
        "column_order": [
            "id",
            "name",
            "value",
            "new_column"
        ],
        "hidden_columns": [
            "id"
        ],
        "sorting": {
            "column": "name",
            "direction": "asc"
        },
        "columns_pin_left": [
            "name"
        ],
        "columns_pin_right": []
    },
    "created_at": "2024-01-01T12:00:00Z",
    "updated_at": "2024-01-01T13:00:00Z"
}

Generic endpoint to patch any specialized tile type.

The tile_type parameter determines which specialized tile type to update. Valid values are: Table, Plot, View, Editor

For Table tiles, valid specialized fields include: table_type, column_context, page_number, column_order, hidden_columns, sorting, grouping, group_sorting, columns_pin_left, columns_pin_right, selected

For Plot tiles, valid specialized fields include: plot_type, plot_scale_x, plot_scale_y, plot_aggregate, x_axis, y_axis, plot_group_by, plot_group_by_colors, bin_count, regression_line

For View tiles, valid specialized fields include: base_index

For Editor tiles, valid specialized fields include: file_path, file_type, content

Authorizations

Authorization
string
required

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

Query Parameters

tile_type
string
required

Type of tile to patch (Table, Plot, View, Editor)

tile_id
string | null
tab_id
string | null
name
string | null

Body

tile_type
string
required

Type of tile to patch (Table, Plot, View, Editor)

tile_id
string | null
tab_id
string | null
name
string | null
curl --request PATCH \
  --url 'https://api.unify.ai/v0/tile/specialized?tile_type=None&tile_id=None&tab_id=None&name=None' \
  --header "Authorization: Bearer $UNIFY_KEY"
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "id": "123",
    "tab_id": "tab_456",
    "name": "Data Table",
    "type": "Table",
    "position": {
        "x": 0,
        "y": 0,
        "width": 6,
        "height": 4
    },
    "min_width": 2,
    "min_height": 2,
    "visible": true,
    "locked": false,
    "moved": false,
    "static": false,
    "table": "main_data",
    "auto_update": true,
    "freeze": false,
    "is_checkpoint": false,
    "table_tile": {
        "id": "table_123",
        "tile_id": "123",
        "table_type": "Data Table",
        "page_number": 2,
        "column_order": [
            "id",
            "name",
            "value",
            "new_column"
        ],
        "hidden_columns": [
            "id"
        ],
        "sorting": {
            "column": "name",
            "direction": "asc"
        },
        "columns_pin_left": [
            "name"
        ],
        "columns_pin_right": []
    },
    "created_at": "2024-01-01T12:00:00Z",
    "updated_at": "2024-01-01T13:00:00Z"
}