+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Device Status (PUT)

Changes the status of a specific device.


Description

A device can be marked as active, lost, stolen, disabled, or expired. Lost, stolen, or disabled devices cannot access the server. A device is marked expired if it has not connected to the MobileFirst server for 90 days.

This transaction can run synchronously or asynchronously. If the transaction is processed asynchronously, the REST service returns before the transaction is completed. In this case, we can query the transaction result later by using the transaction REST service.


Roles

Users in the following roles are authorized to perform this operation:


Method

PUT


Path

/management-apis/2.0/runtimes/runtime-name/devices/device-id


Example


Path Parameters


Query Parameters

Query parameters are optional.


Consumes

application/json


Produces

application/json, application/xml, text/xml


Payload


JSON Example


Payload Properties

The payload has the following properties:


Response

The metadata of the transaction.


JSON Example


XML Example


Response Properties

The response has the following properties:

The transaction has the following properties:

The description has the following properties:

The error has the following properties:

The project has the following properties:


Errors

400

403

404

500

Parent topic: REST API for the MobileFirst Server administration service