Google Drive API integration - request body - invokeurl

Google Drive API integration - request body - invokeurl

Hi,

I am accessing Google Drive API (documentation at https://developers.google.com/drive/api/v3/reference/files) through Zoho CRM. This is working fine, using commands like the following, which pull a Google Drive folder reference from the Contact, and returns a list of files inside that folder:

mapParameters.put("q","'" + Contact.get("gdriveextension__Drive_Folder_ID") + "' in parents and (name contains 'foo' or name contains 'bar') and trashed = false");
mapParameters.put("supportsTeamDrives","true");
mapParameters.put("teamDriveId","xxxxxxx");
fileList = invokeurl
[
url :gdriveURL
type :GET
parameters:mapParameters
connection:"googledrive19"
];


However, for some of the API functions, such as renaming files, information needs to be passed in the request body. So for example, the body needs to look like this:

{
     "name":"newname"
}

How do I pass request body information, through the Zoho invokeurl command? (Using "files: someJSONThing" as may be implied by the Zoho docs at https://www.zoho.com/deluge/help/deluge-invoke-url.html doesn't seem to work.)

Thanks.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now