Examples

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"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

user_id
required

ID of the user

Validations:

  • String

name
required

Name of the table

Validations:

  • String

columns
required

List of user selected columns

Validations:

  • Must be an array of any type