What kind of app did you create? Webhook/Lambda or OAuth-In app?
What are you trying to update? I ask because you can update it using a JSON file as input as well, instead of using the helper.
I used the same command and saw the same error, so I’ll ask the engineering team about it, but in the meantime, we can check how you can edit your app to continue with your tests.
Hi, @henoch.setiadi
I’ve been doing some tests, and despite sending the correct properties needed for a target URL, it gets ignored.
So, for now, I suggest you create another app with the correct targetURL so you can continue with your tests while we investigate this further with the engineering team.
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.
Ah I was wondering if you had been caught out by that. It’s not at all obvious, and it doesn’t happen with the other app types.
Fortunately I knew to look at the apps endpoint definition in the Core SDK to see what is going on. Indeed that folder as a whole is a mine of information about the API.
Hi, @henoch.setiadi
Just following up on the initial error of “TypeError: Cannot read properties of undefined (reading ‘url’)”.
The engineering team made a correction to the CLI, so, it should work correctly in this version without a file as the input: