GET /api/filters
Lista wszystkich filtrów

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

search
opcjonalny

rezultat filtrowania

Validations:

  • Must be a String

order
opcjonalny

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opcjonalny

Page number, starting at 1

Validations:

  • Must be a number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • Must be a number.

Search fields

Field name Typ 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
Pokaż filtry

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

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
Utwórz filtr

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

filter
wymagany

Validations:

  • Must be a Hash

filter[role_id]
wymagany

Validations:

  • Must be a String

filter[search]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

filter[override]
opcjonalny , nil dopuszczalny

Validations:

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

filter[permission_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type

filter[organization_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type

filter[location_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type


PUT /api/filters/:id
Aktualizuj filtr

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

Validations:

  • Must be a String

filter
wymagany

Validations:

  • Must be a Hash

filter[role_id]
opcjonalny

Validations:

  • Must be a String

filter[search]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

filter[override]
opcjonalny , nil dopuszczalny

Validations:

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

filter[permission_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type

filter[organization_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type

filter[location_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type


DELETE /api/filters/:id
Usuń filtr

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

Validations:

  • Must be a String