Examples

POST /api/users/135138680/table_preferences
{
  "name": "test_subscriptions_resource",
  "columns": [
    "1",
    "2",
    "3"
  ],
  "table_preference": {
    "name": "test_subscriptions_resource",
    "columns": [
      "1",
      "2",
      "3"
    ]
  }
}
201
{
  "id": 3,
  "name": "test_subscriptions_resource",
  "columns": [
    "1",
    "2",
    "3"
  ],
  "created_at": "2019-09-11 14:56:37 UTC",
  "updated_at": "2019-09-11 14:56:37 UTC"
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

table_preferences
required

Validations:

  • Must be a Hash

table_preferences[name]
required

Name of the table

Validations:

  • Must be a String

table_preferences[columns]
optional

List of user selected columns

Validations:

  • Must be an array of any type