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.
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方