SmartApps
Update an App's OAuth Settings
Changed onUpdate an app's oauth settings.
put/smartapps/{appNameOrId}/oauth
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:smartapps
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
appNameOrIdstring required
The appName or appId field of an app.
Headers
Authorizationstring string required
OAuth token
Request body
Example request
{
"clientName": "My SmartThings Integration",
"scope": [
"r:installedapps",
"w:installedapps"
],
"redirectUris": [
"https://myapp.com/oauth/callback",
"https://myapp.com/oauthin/callback"
],
"corsDomains": [
"https://myapp.com"
]
}Response
An app's oauth settings model.
Example response
{
"clientName": "My SmartThings Integration",
"scope": [
"r:installedapps",
"w:installedapps",
"x:installedapps"
],
"redirectUris": [
"https://myapp.com/oauth/callback",
"https://myapp.com/oauthin/callback"
],
"corsDomains": [
"https://myapp.com"
]
}Changes
- info
endpoint added
- info