Set Request Method

Written By Richard

Last updated About 1 month ago

The HTTP request method determines what action your API request will perform in Sheetfetch. Choosing the correct method ensures your request behaves as expected when fetching or sending data.

Different methods serve different purposes. For example, GET is typically used to retrieve data, while POST is used to send data to an API.

How to set the request method

To configure the request method in Sheetfetch:

  1. Open your Connection or create a new one

  2. Locate the Method dropdown next to the request URL

  3. Click the dropdown to view available methods

  4. Select the method required by your API endpoint

Make sure the selected method matches the API documentation you are working with.

Common request methods

Here are the most commonly used HTTP methods in Sheetfetch:

GET

Retrieve data from an API
Used for importing data into Google Sheets or your workflow

POST

Send new data to an API
Used for creating new records or triggering actions

PUT

Replace existing data on the API
Used when updating a full resource

PATCH

Partially update existing data
Useful when modifying only specific fields

DELETE

Remove data from the API
Used to delete records or resources

Best practices

  • Always check the API documentation before selecting a method

  • Use GET for data fetching and automation workflows

  • Use POST, PUT, or PATCH when working with write operations

  • Avoid using incorrect methods, as it may result in errors or failed requests

Example

If you want to fetch a list of users:

GET https://api.example.com/users

If you want to create a new user:

POST https://api.example.com/users

Summary

Setting the correct request method is a fundamental step when working with APIs in Sheetfetch. It defines how your request interacts with the server and ensures your data flows correctly between services.