422 unprocessable entity on get_entry_list (record_list)

Hiya,

I have recently been having an issue with my python program, I have been trying to retrieve a record list which you can read about here or what is defined as "get_entry_list" in the doccumetation so I can then use the ID to proceed with a export request below is my code for retrieving the record list,

Shown below there is the copied curl request of the network chrome capture of what is being sent, as you can see the payload and the headers seem to match what is sent in the python program (excluding GPG verification, user-agent, etc. which is automatically added by python requests.)

from this the response from the chrome tab is the record list bean id that I need however from the python program I get an error 422 unprocessable entity error, I was hoping the resposne would shed some light on what is going on however it just seems to be responding back with my original headers and payload :( if you have any ideas on what might be going wrong please let me know! Thank you.

 

  • Hi ,

    The first link you sent points to a "Legacy API", which is not recommended, also I see in your request that you're using (rest/v11_8) which is pretty old.. our latest is v11_16, check them all here.

    You're request can be simplified as:

    Specifically for ProductTemplates we offer an endpoint you could use to navigate it through its tree.

    Hope this helps.

    rafa

    SugarCRM | Principal Developer Advocate