Zoho Contract Update Error
Hello Team
I am trying to update a contract Using Zoho Contract Update API, But I am getting an error if anyone has any idea, Please share.
I am sharing the sample code and Error
Sample Zoho Contract Update Code
- //........Contract Get Data
- ContractData = invokeurl
- [
- url :"https://contracts.zoho.com/api/v1/contracts/222"
- type :GET
- connection:"zohocontract"
- ];
- updatemap = Map();
- updatemap.put("source",5);
- //...........Update Contract..........
- finalList = List();
- firstmap = Map();
- firstmap.put("metaApiName","isRenewable");
- secondmapList = List();
- secondmap = Map();
- secondmap.put("inputApiName","isRenewable");
- secondmap.put("inputValue","true");
- secondmapList.add(secondmap);
- firstmap.put("inputs",secondmapList);
- finalList.add(firstmap);
- ///..........................................
- updatemap.put("inputfields",finalList);
- UpdateContact = invokeurl
- [
- url :"https://contracts.zoho.com/api/v1/contracts/222"
- type :PUT
- parameters:updatemap.toString()
- connection:"zohocontract"
- ];
- info UpdateContact;
Error Message:-
- {"Errors":{"ErrorCode":"ZSEC-PATTERN_NOT_MATCHED","ErrorMessage":"Sorry, unable to complete your action due to an unknown error. Please try again.","APIErrorMessage":"PATTERN_NOT_MATCHED"}}
Thank & Regards
Piyush Goyal
Sticky Posts
11 Common API Errors and How to Prevent Them
Zoho Contracts offers an extensive set of APIs using which you can integrate with your applications and build custom solutions. However, while using them and executing your code, you might face some errors. The reason might be due to any of the following
Organization Parameter in API Calls
Zoho Contracts now supports the multi-org feature where users can be part of multiple organizations. You can now manage contracts across multiple organizations with separate Zoho Contracts accounts for each organization. Users who are part of multiple
Zoho Contracts API Documentation
Greetings! The API documentation of Zoho Contracts is now available. Please access it from the below link. https://www.zoho.com/contracts/api/introduction.html You can post your queries and problems relating to Zoho Contracts API in this developer forum.