Hi Zoho,
Could you please help me. I am using the Zoho Sign API with python.
I can upload documents fine. However, when trying to update said document the API seems to reject the json, despite it being the same as the
Zoho Sign | API Reference. See below example of a very simple query to update the
request_name.
- url = 'https://sign.zoho{0}/api/v1/requests/{1}'.format(data_centre, document_number)
- header = { 'Authorization': 'Zoho-oauthtoken {0}'.format(access_token)}
- data = {
- "requests": {
- "request_name": "NDA ",
- }
- }
- response = requests.put(url, headers=header, data=data)
However, despite what json I enter, I get the following error. Which implies to me that the API doesn't like the 'requests' key. Can you please confirm that this json structure in the example is correct? Is the error in my code or the API end point?
{'code': 9015, 'error_param': 'requests', 'message': 'Extra key found', 'status': 'failure'}