Add a device to a user
The id of the user
The id of the device to add.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.
YOUR_AUTH_KEY
This class provides the add a device to a user.
The token of the device data. This token is used when push notification for the device.
The session of the device data and related with user.
The tags of the device.
Device status enum.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user was not found in the system.
The device has already been added for this user.
API call exceeded rate limit due to too many requests.
POST /api/v1/users/{userId}/devices/{deviceId} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"token": "text",
"session": "text",
"tags": "text",
"userDeviceStatus": "Offline"
}
{
"success": true,
"statusCode": 201,
"message": "The request was successful.",
"data": true,
"errors": []
}
Last updated
Was this helpful?