branch-deep-linking-public-api icon indicating copy to clipboard operation
branch-deep-linking-public-api copied to clipboard

Error can't set key "type": 2 when create deep link

Open SonChanthem opened this issue 2 years ago • 8 comments

Hello Branch Team and @aaustin

There are an issue that I just faced during create deep link via rest api "/v1/url". { "error": { "code": 403, "message": "You don't have access to this type. Please try again with type 0 (default) or 1." } }

I've tried to create deep link via rest api and wan to make it available to show in dashboard on Quick Link menu. I've followed this the suggestion from this https://help.branch.io/faq/docs/can-we-see-api-generated-links-on-the-dashboard and it's got success as expected. But just now I can't access the value 2 of key "type" anymore. It showed error as above.

Does anyone use to faced that issue? Please kindly shared your solution. It's my appreciation all all help.

Thanks

SonChanthem avatar Jan 24 '22 02:01 SonChanthem

Hello @SonChanthem,

Unfortunately we no longer support the creation of Quick Links via the v1/url API effective January 13, 2022. As an alternative, you can still create links via the Quick Link Creator as well as the v1/url API with type not set to 2. Branch is currently exploring options to support the creation Quick Links via the v1/url API.

Sorry for the headache.

Best, Ahmed

ahmednawar avatar Jan 24 '22 21:01 ahmednawar

Lol no heads up? This change breaks support for a lot of services that we're offering via api deep links. Would be nice to get some notice that API breaking changes will be released so clients can react accordingly.

loswojos avatar Jan 26 '22 01:01 loswojos

We sent notifications to all customers who used the API on January the 11th via the Branch Dashboard. Apologies if there was an oversight on our part and missed your app!

ahmednawar avatar Jan 31 '22 17:01 ahmednawar

We have the same problem where we used to create links via the API using type: 2 to allow us to quickly see their stats on the dashboard on the "Quick Links" page. Using type: 0 (default) no longer allows us to see those stats.

That being said, any other major differences between type 2 and 0? I can't seem to find any documentation explaining how default links differ from marketing links aside from them being viewable via the Quick Links page!

ahaider48 avatar Feb 01 '22 01:02 ahaider48

We've just encountered the same problem. We also didn't get any notiications, link creation just suddenly started throwing 403 errors.

Is there any viable solution for this problem available? And what is the actual difference between type 0 and type 2 links? Could you please also explain the reasoning behind not letting create those links via API?

I've tried creating standard links, but the problem I am having with them is that I don't see them in dashboard, what is the point of this API then?

DataGreed avatar May 10 '22 04:05 DataGreed