GET /api/filters
Elenca tutti filtri

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

Search fields

Field name Tipo Possible values
limited true, false
location
location_id
organization
organization_id
override true, false
permission
resource
role
role_id
search
unlimited true, false

GET /api/filters/:id
Mostra un filtro

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/filters
Crea un filtro

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

filter
richiesto

Validations:

  • Must be a Hash

filter[role_id]
richiesto

Validations:

  • Must be a String

filter[search]
opzionale , consentito nil

Validations:

  • Must be a String

filter[override]
opzionale , consentito nil

Validations:

  • Must be one of: true, false, 1, 0.

filter[permission_ids]
opzionale , consentito nil

Validations:

  • Must be an array of any type

filter[organization_ids]
opzionale , consentito nil

Validations:

  • Must be an array of any type

filter[location_ids]
opzionale , consentito nil

Validations:

  • Must be an array of any type


PUT /api/filters/:id
Aggiorna un filtro

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String

filter
richiesto

Validations:

  • Must be a Hash

filter[role_id]
opzionale

Validations:

  • Must be a String

filter[search]
opzionale , consentito nil

Validations:

  • Must be a String

filter[override]
opzionale , consentito nil

Validations:

  • Must be one of: true, false, 1, 0.

filter[permission_ids]
opzionale , consentito nil

Validations:

  • Must be an array of any type

filter[organization_ids]
opzionale , consentito nil

Validations:

  • Must be an array of any type

filter[location_ids]
opzionale , consentito nil

Validations:

  • Must be an array of any type


DELETE /api/filters/:id
Cancella filtro

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String