WebMethod.Put

Updated on

WebMethod.Put (“PUT”) is an enumeration that specifies the PUT method for HTTP. It is a member of the WebMethod.Type that specifies an HTTP method.

Examples

The WebMethod.Put function is used to update existing resources on a server. In the context of HTTP methods, a “PUT” request replaces the current resource with the uploaded content.

When you use WebMethod.Put, you’re telling Power Query to execute a PUT request to the specified URL. In the given example, WebAction.Request(WebMethod.Put, "https://gorilla.bi") sends a PUT request to the “https://gorilla.bi” URL.

WebAction.Request(
  WebMethod.Put,
  "https://api.example.com/users"
)

This function is generally used when you know the specific resource you wish to update on the server. Make sure you understand the implications of a PUT request in the API you’re working with, as it can overwrite existing information.

These enumerations only work in the context of custom connectors.

Other related enumerations are:

Applies to

Here’s a list of functions that work with WebMethod.Type:

BI Gorilla Youtube Channel

Contribute » | Contributors: Rick de Groot