Updated on 2024-03-05 GMT+08:00

HTTPS Methods

This section describes the common methods supported by the standard HTTPS protocol.

Table 1 HTTPS methods

Method

Function

POST

Creates resources, for example, customers.

DELETE

Deletes resources, for example, customers.

PUT

Updates resources as a whole, for example, updates customers as a whole. When a resource is updated using the PUT method, if some attributes of the resource in the request are not transferred, these attributes are left empty. In this case, the method is used for replacing resource attributes as a whole.

PATCH

Updates resources partially, for example, updates customers partially. When a resource is updated using the PATCH method, only the resource attributes transferred in the request are modified. Other attributes are not affected.

If a resource to be updated is of the array type, all the resource attributes need to be transferred for update.

GET

Queries resources, for example, customer information.