GET /api/users/988725677/table_preferences
403
{
"error": {
"message": "Access denied",
"details": "You are trying access the preferences of a different user"
}
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
GET /api/users/135138680/table_preferences/test_subscriptions_resource
200
{
"id": 5,
"name": "test_subscriptions_resource",
"columns": [
"1",
"2",
"3"
],
"created_at": "2019-02-20 13:30:19 UTC",
"updated_at": "2019-02-20 13:30:19 UTC"
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
name required |
Validations:
|
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": 2,
"name": "test_subscriptions_resource",
"columns": [
"1",
"2",
"3"
],
"created_at": "2019-02-20 13:30:19 UTC",
"updated_at": "2019-02-20 13:30:19 UTC"
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
table_preferences required |
Validations:
|
|
table_preferences[name] required |
Name of the table Validations:
|
|
table_preferences[columns] optional |
List of user selected columns Validations:
|
PUT /api/users/135138680/table_preferences/test_subscriptions_resource
{
"columns": [
"1",
"2",
"3"
],
"table_preference": {
"columns": [
"1",
"2",
"3"
]
}
}
200
{
"id": 1,
"name": "test_subscriptions_resource",
"columns": [
"1",
"2",
"3"
],
"created_at": "2019-02-20 13:30:19 UTC",
"updated_at": "2019-02-20 13:30:19 UTC"
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
table_preferences required |
Validations:
|
|
table_preferences[name] required |
Name of the table Validations:
|
|
table_preferences[columns] optional |
List of user selected columns Validations:
|
DELETE /api/users/135138680/table_preferences/test_subscriptions_resource
{
"table_preference": {}
}
200
{
"id": 3,
"name": "test_subscriptions_resource",
"columns": [
"1",
"2",
"3"
],
"created_at": "2019-02-20 13:30:19 UTC",
"updated_at": "2019-02-20 13:30:19 UTC"
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
name required |
name of the table Validations:
|