This API has been deprecated. If support for multiple devices per user is enabled for an app, this API will be disabled for the app and replaced with the API to .
Managing Mobile Users
A mobile user's app is associated with an App Instance by means of an enrollment. The mobile user model (e.g. user) returns additional data to facilitate this.
Parameters
To retrieve, create, update or delete mobile users, follow the instructions in these sections of the documentation for your mobile user object type (e.g. user):
Retrieve all Objects
Create a New Object
Update a Single Object
Delete a Single Object
Deleting the user will disable the user's application. This operation is irreversible.
Response
The response includes all data normally returned by the basic operations: Create, Update, etc.
Additionally, enrollment details for the user are returned under an enrollment field:
Whether the device has scanned the enrollment barcode and successfully enrolled
The URL to which the app must connect to enroll, which is typically encoded in a QR code.
Example
We retrieve an object of our mobile user object type (i.e. user):
http
GET https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/objects/user.json
Replace *mobile-model* with the type of object associated with the mobile user (typically **user**), and *object-id* with the ID of the specific object. The **re_enroll** action effectively disables the user's app, until the enrollment barcode is scanned on the app.
Parameters
This function does not take any parameters.
Response
The response includes a success boolean value.
Example
http
POST https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/objects/user/3e7e18b0-ad0f-11e4-9d6d-001e6733fe3c/re_enroll.json
curl
curl "https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/objects/user/3e7e18b0-ad0f-11e4-9d6d-001e6733fe3c/re_enroll.json" \
-u "533bda53027894f69b001055:7Ajj5htRY1uzw7b4w23V" \
-X POST