Update a thing

Prev Next
Put
/inventory/things/{thingId}

Updates the thing identified by the given id.
Being a full update, the payload should provide the complete thing object. To modify only some properties, use the PATCH version of this endpoint instead.

Required permissions: READ_THING, WRITE_THING.

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the tenant (e.g. acme).

Path parameters
thingId
stringRequired

The thing identifier.

Minimum1
Exampleabcd1234
Body parameters

The details of the thing being updated.

Expand All
object
name
string

The thing name.

serialNumber
string

The thing serial number.

thingDefinitionId
string

The thing-definition identifier associated with the thing.

parentThingId
string

The object identifier of the parent thing in the hierarchy.

rootThingId
string

The object identifier of the root thing in the hierarchy.

productModelId
string

The product-model identifier associated with the thing. This must be provided as an alternative to the thingDefinitionId.

productModelPartId
string

The model-part identifier associated with the thing to be provided with the productModelId.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

gpsPosition
string

The GPS coordinates associated with this thing.

locationId
string

The location identifier. If missing, the thing is registered as NOT ASSIGNED during creation (allowed only by organization users).

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
simIccid
string

The ICCID of the SIM card installed into the product.

tagIds
Array of string

The tag identifiers associated with this thing.

string
thingDefinition
object

The thing-definition associated with the thing.

name
string

The thing definition name.

description
string

The thing definition description.

defaultThingName
string

The placeholder-based value used for thing naming.

nameMetricId
string

The identifier of the metric providing the Thing name.

serialNumberMetricId
string

The identifier of the metric providing the Thing serial number.

gpsPositionMetricId
string

The identifier of the metric providing the Thing GPS position in the form "latitude,longitude".

thingDefinitionMetricId
string

The identifier of the metric providing the name of the thing-definition used to dynamically change the thing-definition associated with a thing.

superThingDefinitionId
string

The identifier of the super thing-definition from which this thing-definition inherits elements (can be set only during creation).

parentThingDefinitionId
string

The identifier of the parent thing-definition this thing-definition is part of.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
customer
object

The customer associated with the thing.

code
string

Public, human-readable identifier for the customer. Unlike "id", which is the immutable internal identifier, "code" is exposed externally and can be modified by clients. Must be unique.

name
string

The name of the customer which could be a personal name or a business name.

country
string

The country of the customer.

countryIsoCode
string

The country ISO Code of the customer.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
creationTimestamp
integer (int64)

The timestamp at which the object was created.

firstAccessTimestamp
integer (int64)

The timestamp at which a client's user first logged in.

lastAccessTimestamp
integer (int64)

The timestamp at which a client's user last logged in.

location
object

The location associated with the thing.

name
string

The location name.

country
string

The country of the location.

countryIsoCode
string

The country ISO Code of the location.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

gpsPosition
string

The GPS coordinates associated with this location.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
customerId
string

The customer identifier.

customer
object

The customer identifier (required only for creation).

id
string

The referenced object identifier.

Example1234abcd
serviceLevel
object

The service-level associated with the thing.

name
string

The name of the service level.

level
integer

The integer value used to compare and sort service levels.

alertingFeature
boolean

The flag indicating whether the alerts management is enabled or not.

notificationsFeature
boolean

The flag indicating whether the notifications management is enabled or not.

thingPricing
object

The thing pricing model.

authorizationPricing
object

The authorization pricing model.

features
object

The list of features enabled on this service level.

partner
object

The partner associated with the thing or inherited from the parent location or customer.

name
string
code
string

Public, human-readable identifier for the partner. Unlike "id", which is the immutable internal identifier, "code" is exposed externally and can be modified by clients. Must be unique.

country
string

The country of the partner.

countryIsoCode
string

The country ISO Code of the partner.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

customerCount
number

The number of customers associated with the partner.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
organization
object

The parent organization identifier.

id
string

The referenced object identifier.

Example1234abcd
creationTimestamp
integer (int64)

The timestamp at which the object was created.

Responses
200

Successfully updated.

Expand All
object
id
string

The thing object identifier.

name
string

The thing name.

serialNumber
string

The thing serial number.

thingDefinitionId
string

The thing-definition identifier associated with the thing.

parentThingId
string

The object identifier of the parent thing in the hierarchy.

rootThingId
string

The object identifier of the root thing in the hierarchy.

productModelId
string

The product-model identifier associated with the thing. This must be provided as an alternative to the thingDefinitionId.

productModelPartId
string

The model-part identifier associated with the thing to be provided with the productModelId.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

gpsPosition
string

The GPS coordinates associated with this thing.

creationTimestamp
integer (int64)

The timestamp at which the object was created.

activationDate
integer (int64)

The last activation date.

lastModifiedTimestamp
integer (int64)

The timestamp at which the object was last modified.

cloudStatus
integer

The cloud status of the thing.
0: INACTIVE
1: TEST
2: ACTIVE
3: SUSPENDED
4: PROVISIONING
5: ACTIVATING
6: ACTIVATING_TEST

cloudStatusLastUpdateTimestamp
integer (int64)

The timestamp of the last cloud status update.

connectionStatus
integer

The connection status of the thing.
-1: UNREACHABLE
0: OFFLINE
1: ONLINE

connectionStatusLastUpdateTimestamp
integer (int64)

The timestamp of the last connection status update.

latestMetricValueTimestamp
integer (int64)

The timestamp of the latest received metric value.

customerId
string

The customer identifier.

locationId
string

The location identifier. If missing, the thing is registered as NOT ASSIGNED during creation (allowed only by organization users).

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
simIccid
string

The ICCID of the SIM card installed into the product.

simDetails
object (SimDetails)

The sub-node providing SIM card connectivity and status details.

simStatus
string

The status of the SIM.

Valid values[ "INACTIVE", "TEST", "ACTIVE" ]
sessionStatus
string

The status of the SIM session.

Valid values[ "G", "A", "R" ]
sessionStartTimestamp
integer (int64)

The timestamp the last session has started.

sessionDataLastTimestamp
integer (int64)

The timestamp the last data has been exchanged by the active session.

sessionNetworkTraffic
integer

The number of bytes exchanged during the session.

dailyTraffic
integer

The daily average of exchanged bytes.

monthlyTraffic
integer

The monthly projection of bytes that will be exchanged.

lastCellId
string

The last cell id the SIM has been connected to.

lastUpdate
integer (int64)

The timestamp when the SIM details were last updated.

tagIds
Array of string

The tag identifiers associated with this thing.

string
thingDefinition
object

The thing-definition associated with the thing.

id
string

The thing definition object identifier.

name
string

The thing definition name.

description
string

The thing definition description.

defaultThingName
string

The placeholder-based value used for thing naming.

nameMetricId
string

The identifier of the metric providing the Thing name.

serialNumberMetricId
string

The identifier of the metric providing the Thing serial number.

gpsPositionMetricId
string

The identifier of the metric providing the Thing GPS position in the form "latitude,longitude".

thingDefinitionMetricId
string

The identifier of the metric providing the name of the thing-definition used to dynamically change the thing-definition associated with a thing.

superThingDefinitionId
string

The identifier of the super thing-definition from which this thing-definition inherits elements (can be set only during creation).

parentThingDefinitionId
string

The identifier of the parent thing-definition this thing-definition is part of.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
customer
object

The customer associated with the thing.

id
string

The customer object identifier.

code
string

Public, human-readable identifier for the customer. Unlike "id", which is the immutable internal identifier, "code" is exposed externally and can be modified by clients. Must be unique.

name
string

The name of the customer which could be a personal name or a business name.

country
string

The country of the customer.

countryIsoCode
string

The country ISO Code of the customer.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
creationTimestamp
integer (int64)

The timestamp at which the object was created.

firstAccessTimestamp
integer (int64)

The timestamp at which a client's user first logged in.

lastAccessTimestamp
integer (int64)

The timestamp at which a client's user last logged in.

location
object

The location associated with the thing.

id
string

The location object identifier.

name
string

The location name.

country
string

The country of the location.

countryIsoCode
string

The country ISO Code of the location.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

gpsPosition
string

The GPS coordinates associated with this location.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
customerId
string

The customer identifier.

customer
object

The customer identifier (required only for creation).

id
string

The referenced object identifier.

Example1234abcd
serviceLevel
object

The service-level associated with the thing.

id
string

The service-level object identifier.

name
string

The name of the service level.

level
integer

The integer value used to compare and sort service levels.

alertingFeature
boolean

The flag indicating whether the alerts management is enabled or not.

notificationsFeature
boolean

The flag indicating whether the notifications management is enabled or not.

thingPricing
object

The thing pricing model.

authorizationPricing
object

The authorization pricing model.

features
object

The list of features enabled on this service level.

partner
object

The partner associated with the thing or inherited from the parent location or customer.

id
string

The partner object identifier.

name
string
code
string

Public, human-readable identifier for the partner. Unlike "id", which is the immutable internal identifier, "code" is exposed externally and can be modified by clients. Must be unique.

country
string

The country of the partner.

countryIsoCode
string

The country ISO Code of the partner.

timezone
string

The timezone used for date/times localization (e.g. Europe/Rome).

customerCount
number

The number of customers associated with the partner.

properties
object (Properties)

The set of properties providing additional details to the parent object.

Example{ "foo": "abc", "bar": 123 }
OneOf
string
string
number
number
boolean
boolean
organization
object

The parent organization identifier.

id
string

The referenced object identifier.

Example1234abcd
creationTimestamp
integer (int64)

The timestamp at which the object was created.

400

Request data not valid.

object
message
string

The error response.

ExampleBad request
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
404

Resource was not found.

object
message
string

The error response.

ExampleResource not found
429

API call rate limit exceeded.

object
message
string

The error response.

ExampleAPI call rate limit exceeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error