apex_execute
Call Salesforce Apex REST endpoints directly by specifying the endpoint and HTTP method (GET, POST, PATCH, DELETE). Supports sending data for POST/PATCH requests to interact with Salesforce APIs.
Instructions
Executes an Apex REST request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The Apex REST endpoint to call (e.g., '/MyApexClass') | |
data | No | Data for POST/PATCH requests | |
method | No | The HTTP method (default: 'GET') | GET |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The Apex REST endpoint to call (e.g., '/MyApexClass')",
"type": "string"
},
"data": {
"additionalProperties": true,
"description": "Data for POST/PATCH requests",
"properties": {},
"type": "object"
},
"method": {
"default": "GET",
"description": "The HTTP method (default: 'GET')",
"enum": [
"GET",
"POST",
"PATCH",
"DELETE"
],
"type": "string"
}
},
"required": [
"action"
],
"type": "object"
}