Headers

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

Params

Param name Description
name
required

Name of the table preset

Validations:

  • Must be a String

Examples

// Succesful request
PUT /api/v2/table_presets/3
{
  "name": "Test preset2"
}
200
{
  "table_preset": {
    "name": "Test preset2",
    "id": 3,
    "user_id": 116,
    "created_at": "2023-11-27T09:43:02.744Z",
    "updated_at": "2023-11-27T09:43:02.805Z",
    "preference_id": null,
    "table_preset_columns": []
  }
}
// Unprocessable Entity
PUT /api/v2/table_presets/4
{}
422
{
  "error": "Missing parameter name"
}
// Table preset not found
PUT /api/v2/table_presets/-1
{
  "name": "Test preset2"
}
404
{
  "error": "Couldn't find TablePreset with 'id'=-1"
}

Errors

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