SmaCH
SmaCH API

Equipment: dataloggers, sensors, gateways and packaging


Get a sensor by identity

GET
https://api.smach.science
/inventories/sensors/{identity}

Get a sensor by identity › path Parameters

identity
​string · minLength: 1 · required

Get a sensor by identity › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Get a sensor by identity › Responses

Unknown identity

Sensor - IoT sensor probe (temperature, humidity, accelerometer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kinds
​Captor[] · minItems: 1 · required

Captors available on this probe

Enum values:
accelerometer
temperature
humidity
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Update a sensor

PUT
https://api.smach.science
/inventories/sensors/{identity}

Update a sensor › path Parameters

identity
​string · minLength: 1 · required

Update a sensor › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Update a sensor › Request Body

Sensor - IoT sensor probe (temperature, humidity, accelerometer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kinds
​Captor[] · minItems: 1 · required

Captors available on this probe

Enum values:
accelerometer
temperature
humidity
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type

Update a sensor › Responses

Unknown identity

Sensor - IoT sensor probe (temperature, humidity, accelerometer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kinds
​Captor[] · minItems: 1 · required

Captors available on this probe

Enum values:
accelerometer
temperature
humidity
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Delete a sensor

DELETE
https://api.smach.science
/inventories/sensors/{identity}

Delete a sensor › path Parameters

identity
​string · minLength: 1 · required

Delete a sensor › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Delete a sensor › Responses

Deleted

No data returned

Get a packaging by identity

GET
https://api.smach.science
/inventories/packaging/{identity}

Get a packaging by identity › path Parameters

identity
​string · minLength: 1 · required

Get a packaging by identity › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Get a packaging by identity › Responses

Unknown identity

Packaging - Protection container (inclosure for static, crate for transport)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kind
​Kind · enum · required

Packaging kind

Enum values:
inclosure
crate
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

category
​string

Packaging category

inside
​string

Internal material

outside
​string

External material

thermal
​string

Thermal insulation material

thermalRate
​integer · int32 · min: 0 · max: 5

Thermal protection rating (0-5)

vibration
​string

Vibration damping material

vibrationRate
​integer · int32 · min: 0 · max: 5

Vibration protection rating (0-5)

​Size

Packaging dimensions (mm)

weight
​integer · int64

Packaging weight (grams)

pictures
​string[]

Photo URLs

type
​string · readOnly

Inventory item type


Update a packaging

PUT
https://api.smach.science
/inventories/packaging/{identity}

Update a packaging › path Parameters

identity
​string · minLength: 1 · required

Update a packaging › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Update a packaging › Request Body

Packaging - Protection container (inclosure for static, crate for transport)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kind
​Kind · enum · required

Packaging kind

Enum values:
inclosure
crate
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

category
​string

Packaging category

inside
​string

Internal material

outside
​string

External material

thermal
​string

Thermal insulation material

thermalRate
​integer · int32 · min: 0 · max: 5

Thermal protection rating (0-5)

vibration
​string

Vibration damping material

vibrationRate
​integer · int32 · min: 0 · max: 5

Vibration protection rating (0-5)

​Size

Packaging dimensions (mm)

weight
​integer · int64

Packaging weight (grams)

pictures
​string[]

Photo URLs

type
​string · readOnly

Inventory item type

Update a packaging › Responses

Unknown identity

Packaging - Protection container (inclosure for static, crate for transport)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kind
​Kind · enum · required

Packaging kind

Enum values:
inclosure
crate
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

category
​string

Packaging category

inside
​string

Internal material

outside
​string

External material

thermal
​string

Thermal insulation material

thermalRate
​integer · int32 · min: 0 · max: 5

Thermal protection rating (0-5)

vibration
​string

Vibration damping material

vibrationRate
​integer · int32 · min: 0 · max: 5

Vibration protection rating (0-5)

​Size

Packaging dimensions (mm)

weight
​integer · int64

Packaging weight (grams)

pictures
​string[]

Photo URLs

type
​string · readOnly

Inventory item type


Delete a packaging

DELETE
https://api.smach.science
/inventories/packaging/{identity}

Delete a packaging › path Parameters

identity
​string · minLength: 1 · required

Delete a packaging › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Delete a packaging › Responses

Deleted

No data returned

Get a logger by identity

GET
https://api.smach.science
/inventories/loggers/{identity}

Get a logger by identity › path Parameters

identity
​string · minLength: 1 · required

Get a logger by identity › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Get a logger by identity › Responses

Unknown identity

Logger - IoT datalogger central unit (GPS + Bluetooth box)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Update a logger

PUT
https://api.smach.science
/inventories/loggers/{identity}

Update a logger › path Parameters

identity
​string · minLength: 1 · required

Update a logger › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Update a logger › Request Body

Logger - IoT datalogger central unit (GPS + Bluetooth box)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type

Update a logger › Responses

Unknown identity

Logger - IoT datalogger central unit (GPS + Bluetooth box)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Delete a logger

DELETE
https://api.smach.science
/inventories/loggers/{identity}

Delete a logger › path Parameters

identity
​string · minLength: 1 · required

Delete a logger › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Delete a logger › Responses

Deleted

No data returned

Get a gateway by identity

GET
https://api.smach.science
/inventories/gateways/{identity}

Get a gateway by identity › path Parameters

identity
​string · minLength: 1 · required

Get a gateway by identity › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Get a gateway by identity › Responses

Unknown identity

Gateway - IoT relay device (cabin/trailer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Update a gateway

PUT
https://api.smach.science
/inventories/gateways/{identity}

Update a gateway › path Parameters

identity
​string · minLength: 1 · required

Update a gateway › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Update a gateway › Request Body

Gateway - IoT relay device (cabin/trailer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type

Update a gateway › Responses

Unknown identity

Gateway - IoT relay device (cabin/trailer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Delete a gateway

DELETE
https://api.smach.science
/inventories/gateways/{identity}

Delete a gateway › path Parameters

identity
​string · minLength: 1 · required

Delete a gateway › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Delete a gateway › Responses

Deleted

No data returned

List sensors

GET
https://api.smach.science
/inventories/sensors

Follow the Link header to page through the collection rather than building page URLs. The search parameter matches the name, the identity and the description, anywhere in the field. Sortable on name, identity, created, updated.

List sensors › query Parameters

page
​integer · int32 · min: 0

0-indexed page number

Default: 0
size
​integer · int32 · min: 1 · max: 200

Page size

Default: 50
search
​string

Free-text search. The fields it matches are documented per endpoint.

sort
​string

Sort field, prefixed with '-' for descending (e.g. -createdAt), composed with commas. The sortable fields are documented per endpoint.

captor
​Captor · enum

Keep only probes carrying this captor

Enum values:
accelerometer
temperature
humidity
inService
​boolean

true keeps only the items engaged by a monitoring that is set up or recording, false only the others, which are the ones available for a Setup. A monitoring that ended does not count: an item it used is free again. Requires the X-Organization header.

List sensors › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

List sensors › Responses

200

A page of results

Sensor - IoT sensor probe (temperature, humidity, accelerometer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kinds
​Captor[] · minItems: 1 · required

Captors available on this probe

Enum values:
accelerometer
temperature
humidity
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Create a sensor

POST
https://api.smach.science
/inventories/sensors

Create a sensor › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Create a sensor › Request Body

Sensor - IoT sensor probe (temperature, humidity, accelerometer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kinds
​Captor[] · minItems: 1 · required

Captors available on this probe

Enum values:
accelerometer
temperature
humidity
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type

Create a sensor › Responses

Created

Sensor - IoT sensor probe (temperature, humidity, accelerometer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kinds
​Captor[] · minItems: 1 · required

Captors available on this probe

Enum values:
accelerometer
temperature
humidity
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


List packaging

GET
https://api.smach.science
/inventories/packaging

Follow the Link header to page through the collection rather than building page URLs. The search parameter matches the name, the identity and the description, anywhere in the field. Search also matches the category. Sortable on name, identity, created, updated, kind, category, weight.

List packaging › query Parameters

page
​integer · int32 · min: 0

0-indexed page number

Default: 0
size
​integer · int32 · min: 1 · max: 200

Page size

Default: 50
search
​string

Free-text search. The fields it matches are documented per endpoint.

sort
​string

Sort field, prefixed with '-' for descending (e.g. -createdAt), composed with commas. The sortable fields are documented per endpoint.

kind
​Kind · enum

Keep only inclosures, or only crates

Packaging kind

Enum values:
inclosure
crate

List packaging › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

List packaging › Responses

200

A page of results

Packaging - Protection container (inclosure for static, crate for transport)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kind
​Kind · enum · required

Packaging kind

Enum values:
inclosure
crate
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

category
​string

Packaging category

inside
​string

Internal material

outside
​string

External material

thermal
​string

Thermal insulation material

thermalRate
​integer · int32 · min: 0 · max: 5

Thermal protection rating (0-5)

vibration
​string

Vibration damping material

vibrationRate
​integer · int32 · min: 0 · max: 5

Vibration protection rating (0-5)

​Size

Packaging dimensions (mm)

weight
​integer · int64

Packaging weight (grams)

pictures
​string[]

Photo URLs

type
​string · readOnly

Inventory item type


Create a packaging

POST
https://api.smach.science
/inventories/packaging

Create a packaging › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Create a packaging › Request Body

Packaging - Protection container (inclosure for static, crate for transport)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kind
​Kind · enum · required

Packaging kind

Enum values:
inclosure
crate
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

category
​string

Packaging category

inside
​string

Internal material

outside
​string

External material

thermal
​string

Thermal insulation material

thermalRate
​integer · int32 · min: 0 · max: 5

Thermal protection rating (0-5)

vibration
​string

Vibration damping material

vibrationRate
​integer · int32 · min: 0 · max: 5

Vibration protection rating (0-5)

​Size

Packaging dimensions (mm)

weight
​integer · int64

Packaging weight (grams)

pictures
​string[]

Photo URLs

type
​string · readOnly

Inventory item type

Create a packaging › Responses

Created

Packaging - Protection container (inclosure for static, crate for transport)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

kind
​Kind · enum · required

Packaging kind

Enum values:
inclosure
crate
name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

category
​string

Packaging category

inside
​string

Internal material

outside
​string

External material

thermal
​string

Thermal insulation material

thermalRate
​integer · int32 · min: 0 · max: 5

Thermal protection rating (0-5)

vibration
​string

Vibration damping material

vibrationRate
​integer · int32 · min: 0 · max: 5

Vibration protection rating (0-5)

​Size

Packaging dimensions (mm)

weight
​integer · int64

Packaging weight (grams)

pictures
​string[]

Photo URLs

type
​string · readOnly

Inventory item type


List loggers

GET
https://api.smach.science
/inventories/loggers

Follow the Link header to page through the collection rather than building page URLs. The search parameter matches the name, the identity and the description, anywhere in the field. Sortable on name, identity, created, updated.

List loggers › query Parameters

page
​integer · int32 · min: 0

0-indexed page number

Default: 0
size
​integer · int32 · min: 1 · max: 200

Page size

Default: 50
search
​string

Free-text search. The fields it matches are documented per endpoint.

sort
​string

Sort field, prefixed with '-' for descending (e.g. -createdAt), composed with commas. The sortable fields are documented per endpoint.

inService
​boolean

true keeps only the items engaged by a monitoring that is set up or recording, false only the others, which are the ones available for a Setup. A monitoring that ended does not count: an item it used is free again. Requires the X-Organization header.

List loggers › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

List loggers › Responses

200

A page of results

Logger - IoT datalogger central unit (GPS + Bluetooth box)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Create a logger

POST
https://api.smach.science
/inventories/loggers

Create a logger › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Create a logger › Request Body

Logger - IoT datalogger central unit (GPS + Bluetooth box)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type

Create a logger › Responses

Created

Logger - IoT datalogger central unit (GPS + Bluetooth box)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


List gateways

GET
https://api.smach.science
/inventories/gateways

Follow the Link header to page through the collection rather than building page URLs. The search parameter matches the name, the identity and the description, anywhere in the field. Sortable on name, identity, created, updated.

List gateways › query Parameters

page
​integer · int32 · min: 0

0-indexed page number

Default: 0
size
​integer · int32 · min: 1 · max: 200

Page size

Default: 50
search
​string

Free-text search. The fields it matches are documented per endpoint.

sort
​string

Sort field, prefixed with '-' for descending (e.g. -createdAt), composed with commas. The sortable fields are documented per endpoint.

inService
​boolean

true keeps only the items engaged by a monitoring that is set up or recording, false only the others, which are the ones available for a Setup. A monitoring that ended does not count: an item it used is free again. Requires the X-Organization header.

List gateways › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

List gateways › Responses

200

A page of results

Gateway - IoT relay device (cabin/trailer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Create a gateway

POST
https://api.smach.science
/inventories/gateways

Create a gateway › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Create a gateway › Request Body

Gateway - IoT relay device (cabin/trailer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type

Create a gateway › Responses

Created

Gateway - IoT relay device (cabin/trailer)
identity
​string · minLength: 1 · pattern: \S(.*\S)? · required

Unique business identifier (IMEI or reference)

name
​string · minLength: 1 · required

Display name

id
​string · uuid · readOnly

Storage identifier

created
​string · date-time · readOnly

Creation timestamp

updated
​string · date-time · readOnly

Last update timestamp

description
​string

Description or model information

type
​string · readOnly

Inventory item type


Check whether a sensor identity is taken

GET
https://api.smach.science
/inventories/sensors/{identity}/exists

Whether this identity is already used in the current organization. Intended for live validation while a form is being filled: creating a duplicate answers 409 regardless.

Check whether a sensor identity is taken › path Parameters

identity
​string · minLength: 1 · required

Check whether a sensor identity is taken › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Check whether a sensor identity is taken › Responses

200

OK

Existence check result
exists
​boolean

Count sensors matching the filters

GET
https://api.smach.science
/inventories/sensors/count

Answers a business question; paging is driven by the list endpoint's Link header. The filters have the same meaning as on the list endpoint.

Count sensors matching the filters › query Parameters

search
​string
captor
​Captor · enum
Enum values:
accelerometer
temperature
humidity
inService
​boolean

true keeps only the items engaged by a monitoring that is set up or recording, false only the others, which are the ones available for a Setup. A monitoring that ended does not count: an item it used is free again. Requires the X-Organization header.

Count sensors matching the filters › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Count sensors matching the filters › Responses

200

OK

Number of resources matching the filters
count
​integer · int64

Check whether a packaging identity is taken

GET
https://api.smach.science
/inventories/packaging/{identity}/exists

Whether this identity is already used in the current organization. Intended for live validation while a form is being filled: creating a duplicate answers 409 regardless.

Check whether a packaging identity is taken › path Parameters

identity
​string · minLength: 1 · required

Check whether a packaging identity is taken › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Check whether a packaging identity is taken › Responses

200

OK

Existence check result
exists
​boolean

Count packaging matching the filters

GET
https://api.smach.science
/inventories/packaging/count

Answers a business question; paging is driven by the list endpoint's Link header. The filters have the same meaning as on the list endpoint.

Count packaging matching the filters › query Parameters

search
​string
kind
​Kind · enum

Packaging kind

Enum values:
inclosure
crate

Count packaging matching the filters › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Count packaging matching the filters › Responses

200

OK

Number of resources matching the filters
count
​integer · int64

Check whether a logger identity is taken

GET
https://api.smach.science
/inventories/loggers/{identity}/exists

Whether this identity is already used in the current organization. Intended for live validation while a form is being filled: creating a duplicate answers 409 regardless.

Check whether a logger identity is taken › path Parameters

identity
​string · minLength: 1 · required

Check whether a logger identity is taken › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Check whether a logger identity is taken › Responses

200

OK

Existence check result
exists
​boolean

Count loggers matching the filters

GET
https://api.smach.science
/inventories/loggers/count

Answers a business question; paging is driven by the list endpoint's Link header. The filters have the same meaning as on the list endpoint.

Count loggers matching the filters › query Parameters

search
​string
inService
​boolean

true keeps only the items engaged by a monitoring that is set up or recording, false only the others, which are the ones available for a Setup. A monitoring that ended does not count: an item it used is free again. Requires the X-Organization header.

Count loggers matching the filters › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Count loggers matching the filters › Responses

200

OK

Number of resources matching the filters
count
​integer · int64

Check whether a gateway identity is taken

GET
https://api.smach.science
/inventories/gateways/{identity}/exists

Whether this identity is already used in the current organization. Intended for live validation while a form is being filled: creating a duplicate answers 409 regardless.

Check whether a gateway identity is taken › path Parameters

identity
​string · minLength: 1 · required

Check whether a gateway identity is taken › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Check whether a gateway identity is taken › Responses

200

OK

Existence check result
exists
​boolean

Count gateways matching the filters

GET
https://api.smach.science
/inventories/gateways/count

Answers a business question; paging is driven by the list endpoint's Link header. The filters have the same meaning as on the list endpoint.

Count gateways matching the filters › query Parameters

search
​string
inService
​boolean

true keeps only the items engaged by a monitoring that is set up or recording, false only the others, which are the ones available for a Setup. A monitoring that ended does not count: an item it used is free again. Requires the X-Organization header.

Count gateways matching the filters › Headers

X-Organization
​string

The organization alias the request applies to, not its display name.

Optional for an account belonging to a single organization, which is resolved from the token. Required beyond that, since no default is defensible. A super-admin may name any organization, or none, which reads across all of them.

Count gateways matching the filters › Responses

200

OK

Number of resources matching the filters
count
​integer · int64