on 07-13-2016 2:11 PM
Hello,
I have as a task to make a client that will change the access token of a device in the IoT service.
I use the URI model in documentation and changed the host and id. The problem is that when I make the DELETE or POST request it returns error code 404.
Is there a way to change the access token of a device?
Hi Nikolay,
yes, it is possible. If you like to make it with RESTful API, you'd need to use RDMS V2. See more in documentation [1]
The token can also be renewed in a single step using a
POST on https://<host>/com.sap.iotservices.dms/v2/api/devices/<id>/authentication/token with empty body.
The response contains the updated authentication object.
{ "type": "oauth", "token": " u2jrvvqaathb3bl4dp6dfanw54dl0x" }
Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I read the documentation and used this URI model.
and returns again 404. I put as a header basic authorization.
Your URL is wrong. You try to use RDMS API but refer to "iotcockpit" app. Should be "https://iotrdmsiotservices-i3..."
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.