GET /api/users/135138680/table_preferences 200 { "total": 0, "subtotal": 0, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [] }
Param name | Description |
---|---|
location_id
optional |
Set the current location context for the request Validations:
|
organization_id
optional |
Set the current organization context for the request Validations:
|
user_id
required |
ID of the user Validations:
|
search
optional |
filter results Validations:
|
order
optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
page
optional |
Page number, starting at 1 Validations:
|
per_page
optional |
Number of results per page to return, 'all' to return all results Validations:
|
GET /api/users/135138680/table_preferences/test_subscriptions_resource 200 { "id": 2, "name": "test_subscriptions_resource", "columns": [ "1", "2", "3" ], "created_at": "2024-02-22 15:52:48 UTC", "updated_at": "2024-02-22 15:52:48 UTC" }
Param name | Description |
---|---|
location_id
optional |
Set the current location context for the request Validations:
|
organization_id
optional |
Set the current organization context for the request Validations:
|
user_id
required |
ID of the user Validations:
|
name
required |
Name of the table 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": 1, "name": "test_subscriptions_resource", "columns": [ "1", "2", "3" ], "created_at": "2024-02-22 15:52:48 UTC", "updated_at": "2024-02-22 15:52:48 UTC" }
Param name | Description |
---|---|
location_id
optional |
Set the current location context for the request Validations:
|
organization_id
optional |
Set the current organization context for the request Validations:
|
user_id
required |
ID of the user Validations:
|
name
required |
Name of the table Validations:
|
columns
required |
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": 5, "name": "test_subscriptions_resource", "columns": [ "1", "2", "3" ], "created_at": "2024-02-22 15:52:48 UTC", "updated_at": "2024-02-22 15:52:48 UTC" }
Param name | Description |
---|---|
location_id
optional |
Set the current location context for the request Validations:
|
organization_id
optional |
Set the current organization context for the request Validations:
|
user_id
required |
ID of the user Validations:
|
name
required |
Name of the table Validations:
|
columns
required |
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": "2024-02-22 15:52:48 UTC", "updated_at": "2024-02-22 15:52:48 UTC" }
Param name | Description |
---|---|
location_id
optional |
Set the current location context for the request Validations:
|
organization_id
optional |
Set the current organization context for the request Validations:
|
user_id
required |
ID of the user Validations:
|
name
required |
Name of the table Validations:
|