SmartThings CLI apps:update Type Error (reading 'url')

Hi, @henoch.setiadi

The engineering team mentioned the correct structure to update the app is the following:

{
    "appName": "...",
    "appType": "API_ONLY",
    "principalType": "LOCATION",
    "classifications": [
        "CONNECTED_SERVICE"
    ],
    "displayName": "OAuth Integration",
    "description": "Description",
    "apiOnly": {
        "targetUrl": "https://..."
    }
}

Things like the “appName” depend on the current values of your app.
Just as an FYI, you’ll see this result for the app in the “apiOnly” property:

"apiOnly": {
        "subscription": {
            "targetUrl": "https://...",
            "targetStatus": "PENDING"
        }
}

That’s the input I was using, but this is the value I mentioned being ignored. This is to avoid confusion in the future.

Note: Registering the targetURL will send a POST request to that endpoint with the confirmationURL, which you need to copy and paste in the browser or make a GET request using it. This is to “verify” the app so it can receive requests with the subscription events.