Forums

Updating Schedule through PA API not working

Good Afternoon,

I am attempting to update one of my schedules hour and minute through the PythonAnywhere API.

I have been attempting the PUT and PATCH from your docs:

PUT Endpoints for scheduled tasks command, enabled, interval, hour, minute, description PATCH Endpoints for scheduled tasks command, enabled, interval, hour, minute, description

However, the response I keep getting is as if I am running a GET, it returns the schedule as it was before the attempted update, with no errors only a response 200.

Do you have any docs that show how you want the parameters to be parsed?

I have tested adding them as a header, in the params, and in a JSON body (All tested inside postman)

I only want to update the hour and minute so I am only parsing those two params.

Please let me know!

We have python code wrapping that api in https://pypi.org/project/pythonanywhere-core/ see the code here https://github.com/pythonanywhere/pythonanywhere-core/blob/master/pythonanywhere_core/schedule.py