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:
Open your Connection or create a new one
Locate the Method dropdown next to the request URL
Click the dropdown to view available methods
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
GETfor data fetching and automation workflowsUse
POST,PUT, orPATCHwhen working with write operationsAvoid 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/usersIf you want to create a new user:
POST https://api.example.com/usersSummary
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.