Exemples

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": "2019-09-11 14:56:37 UTC",
  "updated_at": "2019-09-11 14:56:37 UTC"
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

table_preferences
requis

Validations:

  • Must be a Hash

table_preferences[name]
requis

Nom de la table

Validations:

  • Must be a String

table_preferences[columns]
optionel

Liste des colonnes sélectionnées par l’utilisateur

Validations:

  • Must be an array of any type