GET /api/models
Lista modeli sprzętu

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
hardware_model
info
name
vendor_class

GET /api/models/:id
Pokaż model sprzętu

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/models
Utwórz model sprzętu

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

model
wymagany

Validations:

  • Must be a Hash

model[name]
wymagany

Validations:

  • Must be a String

model[info]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

model[vendor_class]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

model[hardware_model]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String


PUT /api/models/:id
Aktualizuj model sprzętu

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

model
wymagany

Validations:

  • Must be a Hash

model[name]
opcjonalny

Validations:

  • Must be a String

model[info]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

model[vendor_class]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String

model[hardware_model]
opcjonalny , nil dopuszczalny

Validations:

  • Must be a String


DELETE /api/models/:id
Usuń model sprzętu

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