GET /api/users/:user_id/table_preferences
List of table preferences for a user

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer


GET /api/users/:user_id/table_preferences/:name
Table preference details of a given table

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

name
required

Validations:

  • String


POST /api/users/:user_id/table_preferences
Creates a table preference for a given table

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

table_preferences
required

Validations:

  • Hash

table_preferences[name]
required

Name of the table

Validations:

  • String

table_preferences[columns]
optional

List of user selected columns

Validations:

  • Must be an array of any type


PUT /api/users/:user_id/table_preferences/:name
Updates a table preference for a given table

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

table_preferences
required

Validations:

  • Hash

table_preferences[name]
required

Name of the table

Validations:

  • String

table_preferences[columns]
optional

List of user selected columns

Validations:

  • Must be an array of any type


DELETE /api/users/:user_id/table_preferences/:name
Delete a table preference for a given table

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

name
required

name of the table

Validations:

  • String