Hello @orangebucket Graham Thanks for responding, I already have an app with profileId, installedAppId, locationId, but the api requires a Authorization with i:deviceprofiles, how i can attach the above permission? because without this i got the 403 error code.
So whats should i use for the Authorization Header, Could you please let me know any other way with quick description.
@orangebucket is right, you can’t create devices using your PAT, it is only for Access Tokens acquired from a SmartApp with the correct scopes, one of which is i:deviceprofiles:*.
The part “I already have an app with profileId, installedAppId, locationId” isn’t clear, do you mean you created a SmartApp in the Developer Workspace?
If so, did you whitelist the corresponding scopes there?