Update Google Docs through Make API Call Module

Hi community,
I’m trying to update a google docs using the “Make an API call” module, The GET methods works fine, but the other methods throw a 404 error, for the same document id,
here is a screen shot of the configuration.

Welcome to the Make community!

If you need further assistance, please provide the following:

  • output bundle of module [22]
  • a link to the endpoint’s documentation

Please provide the output bundles of the previous modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

Hope this helps! Let me know if there are any further questions or issues.
Note: I see hundreds of posts, notifications, and messages daily on this forum, so if I missed your reply, please message me to look at your reply.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

I’m not sure if this is what you meant but here’s a link to the documentation https://www.make.com/en/help/app/google-docs

here is the output bundle from module 22:

[
    {
        "json": "[{\"start\":\"2024-08-22T13:00:00.000Z\",\"end\":\"2024-08-22T15:00:00.000Z\"},{\"start\":\"2024-08-26T15:00:00.000Z\",\"end\":\"2024-08-26T17:00:00.000Z\"},{\"start\":\"2024-08-27T13:00:00.000Z\",\"end\":\"2024-08-27T15:00:00.000Z\"},{\"start\":\"2024-08-28T11:00:00.000Z\",\"end\":\"2024-08-28T13:00:00.000Z\"},{\"start\":\"2024-08-28T15:00:00.000Z\",\"end\":\"2024-08-28T17:00:00.000Z\"}]"
    }
]

No, I’m referring to the Google Docs API documentation. You are trying to call a certain Google Docs API endpoint to do something. Please find the page of Google Docs API documentation for the action you are trying to perform.

Here is the main page, with three listed endpoints you can call:

https://developers.google.com/docs/api/reference/rest

Which one are you attempting?

Hope this helps! Let me know if there are any further questions or issues.
Note: I see hundreds of posts, notifications, and messages daily on this forum, so if I missed your reply, please message me to look at your reply.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

This is the endpoint, batch Update

Thank you,

And where does it say to use the “PATCH” method for this endpoint?

(You are using PATCH as shown in your first screenshot)

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

What I am trying to do is to update all the content of the document every time,

I’ve tried this as you can see in the screenshot and it throw this error:
the error says I’m doing something wrong, on the google console side.

The key should not be in your URL.

Delete everything after and including the question mark in the URL.

1 Like

Thank you Samliew, That worked with some extra required steps:
-Enabled this OAuth scope https://www.googleapis.com/auth/drive.file from google console,
and Adjusting the request body,
here’s a screenShot.

3 Likes