These docs are for v2.0. Click to read the latest docs for v3.3.

When a user wants to give access to his or her resources to another user, the app can grant the endpoint. But this time the app has to pass the email of the granted user. The granted user will also receive an email to confirm this action.

Log in to see full request history
# In the next example, we let the user’s friend read the temperature of the thing with ID "thingId1". She won’t be able to grant this resource to anybody else, as we aren’t granting her the grant permission. Also it is not possible to grant permissions that the session token doesn’t have. curl -i -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: SESSION_TOKEN" \ -d '{"email": "friend@email.com", "permissions": {"temperature":{"thingId1":{"get": true}}}}' \ -X PUT "https://api.thethings.io/v2/me/grant" -k
Body Params
string
required
json
required
Defaults to {"temperature": {" thethingID ": {"get": true, "grant": true}}}

Resources to give permission JSON

Headers
string
required

SESSION_TOKEN

Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json