Skip to content

API_Base.HttpMethod

Class

apex
global enum API_Base.HttpMethod

HTTP method verbs for web service calls.

Example

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

Inner Classes

ClassDescription
DELETIONHTTP DELETE method for removing resources (named DELETION to avoid reserved word).
GETHTTP GET method for retrieving resources.
PATCHHTTP PATCH method for partial updates.
POSTHTTP POST method for creating resources.
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.