Error with status code 500 on a cycle post request

my error
Status Code: 500 (which makes no sense btw :slight_smile: )
{“error”:“Error occured while processing request. Error ID: 1b69c69630f4c6e17b2c7e69fa9f11749eb1c711e959ef5a0dfe7933ad8ae198”}

the data in my python post request

        d = {
        "states": [
            {
                "color": args[0].lower(),
                "kelvin": 9000
            },
            {
                "color": "#ffffff",
                "kelvin": 3000
            }
        ],
        "defaults": {
            "power": "on",
            "saturation": 1.0,
            "brightness": 1,
            "duration": 1,
            "infrared": 0
        }
    }

also as a side note its really confusing that you have the url
https://api.lifx.com/v1/lights/:selector/cycle
at the top of this page https://api.developer.lifx.com/docs/cycle
but this url in the code
https://api.lifx.com/v1beta1/lights/:selector/cycle

Looked through this post and didn’t find anything of value States returns 500 error

any help appreciated thanks!

working with the following code changes

d = {
        "states": [
            {
                "color": args[0].lower(),
                "kelvin": 9000,
                "duration": 2.0
            },
            {
                "color": "white",
                "kelvin": 3000,
                "duration": 1.0
            }
        ],
        "defaults": {
            "power": "on",
            "saturation": 1.0,
            "brightness": 1,
            "infrared": 0
        }
    }
    h = {
            "Authorization": "Bearer xxxxxx"
        }
    r = requests.post('https://api.lifx.com/v1beta1/lights/all/cycle',headers=h,data=json.dumps(d))