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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

name
必填

Validations:

  • Must be a String


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

table_preferences
必填

Validations:

  • Must be a Hash

table_preferences[name]
必填

Name of the table

Validations:

  • Must be a String

table_preferences[columns]
选填

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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

table_preferences
必填

Validations:

  • Must be a Hash

table_preferences[name]
必填

Name of the table

Validations:

  • Must be a String

table_preferences[columns]
选填

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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

name
必填

name of the table

Validations:

  • Must be a String