Skip to content

API_Base.HttpMethod

Class

apex
global enum API_Base.HttpMethod

HTTP method verbs for web service calls.

Since: 1.0

Example:

apex
API_Base.HttpMethod method = API_Base.HttpMethod.POST;

Values

ValueDescription
global DELETIONHTTP DELETE method for removing resources (named DELETION to avoid reserved word).
global GETHTTP GET method for retrieving resources.
global PATCHHTTP PATCH method for partial updates.
global POSTHTTP POST method for creating resources.
global PUTHTTP PUT method for updating resources.

Value Details

DELETION

apex
global DELETION

HTTP DELETE method for removing resources (named DELETION to avoid reserved word).

GET

apex
global GET

HTTP GET method for retrieving resources.

PATCH

apex
global PATCH

HTTP PATCH method for partial updates.

POST

apex
global POST

HTTP POST method for creating resources.

PUT

apex
global PUT

HTTP PUT method for updating resources.