Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong action name used when creating page rules #496

Closed
coreycoto opened this issue May 8, 2024 · 1 comment
Closed

Wrong action name used when creating page rules #496

coreycoto opened this issue May 8, 2024 · 1 comment

Comments

@coreycoto
Copy link

When a Forwarding URL page rule is created via the Dashboard and then retrieved via the API then the action id is forwarding_url. The TypeScript SDK requires this value to be forward_url. However, when `` is called with forward_url then the API returns an `HTTP 400` with a message `Unable to parse page rule`.

Change the SDK to use forwarding_url instead of forward_url.

@jacobbednarz
Copy link
Member

despite the confusing name, forward_url is different to forwarding_url. you'll want to use the latter when interacting with the API to get the desired effect you want here.

it doesn't look like the types are being exported here, i'll make a note for future releases to get that addressed.

@jacobbednarz jacobbednarz closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants