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

Return all Unknown Field(s) on first request to endpoint fleet_telemetry_config create #277

Open
andrewdevelopz opened this issue Dec 18, 2024 · 0 comments

Comments

@andrewdevelopz
Copy link

If I submit unknown Fields to https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-endpoints#fleet-telemetry-config-create

...
        "fields": {
            "ClimateKeeperModeState": {
                "interval_seconds": 60
            },
            "Experimental_1": {
                "interval_seconds": 60
            },
            "Experimental_2": {
                "interval_seconds": 60
            }
        },
...

It returns 1 bad Field at a time for each request

e.g. 400 response:

{
    "response": null,
    "error": "Unknown field ClimateKeeperModeState",
    "error_description": "",
    "txid": <txid>
}

Would it be possible to change this so that it returns all the bad Fields on the first request?

So something like this:

{
    "response": ["ClimateKeeperModeState", "Experimental_1", "Experimental_2"],
    "error": "Unknown fields",
    "error_description": "",
    "txid": <txid>
}

Thank you.

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

1 participant