Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY

Params

Param name Description
order
required

Position of the column

Validations:

  • Must be a Integer

width
required

Width of the column

Validations:

  • Must be a Integer

hidden
optional

Column visibility

Validations:

  • Must be one of: true, false.

Examples

// Succesful request
PUT /api/v2/table_presets/5/table_preset_columns/2
{
  "order": 3,
  "width": 123,
  "hidden": true
}
200
{
  "table_preset_column": {
    "order": 3,
    "width": 123,
    "table_preset_id": 5,
    "hidden": true,
    "id": 2,
    "field_id": null,
    "name": "ID",
    "column_type": "default",
    "created_at": "2023-11-27T09:43:03.097Z",
    "updated_at": "2023-11-27T09:43:03.141Z",
    "field_group_id": null,
    "column_field": "_id"
  }
}
// Table preset column not found
PUT /api/v2/table_presets/6/table_preset_columns/-1
{
  "order": 3,
  "width": 123,
  "hidden": true
}
404
{
  "error": "Couldn't find TablePresetColumn with 'id'=-1"
}

Errors

Code Description
401 Unauthorized
404 Not found
500 Internal Server Error
422 Missing parameters