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

Incorrect examples for API documentation of Email Routing #20017

Open
as-ajitsingh opened this issue Feb 15, 2025 · 0 comments
Open

Incorrect examples for API documentation of Email Routing #20017

as-ajitsingh opened this issue Feb 15, 2025 · 0 comments
Labels

Comments

@as-ajitsingh
Copy link

Example URL(s)

Actual Behavior

Both cURL examples indicate that the drop action should be used for create and update operations.

// from documentation
[
  {
    "type": "drop",
    "value": ["[email protected]"]
  }
]


and api request results in below error -

 [
        {
            "code": 2007,
            "message": "Invalid Input: actions: (0: (value: drop action cannot have values.).)."
        }
]

Expected Behavior

Instead of drop, it should say forward, as that appears to be the correct request body.

Additional information

I can make the change and create a PR, but I couldn't find the repository for the API documentation. This repo only contains the user documentation, not the API docs.

@as-ajitsingh as-ajitsingh added the engineering Problems or updates to developers.cloudflare.com website label Feb 15, 2025
@kodster28 kodster28 assigned Maddy-Cloudflare and unassigned KianNH Feb 18, 2025
@kodster28 kodster28 added api-docs and removed engineering Problems or updates to developers.cloudflare.com website labels Feb 18, 2025
@Maddy-Cloudflare Maddy-Cloudflare removed their assignment Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants