Tooling ExecuteAnonymous

GET {{_endpoint}}/services/data/v{{version}}/tooling/executeAnonymous/?anonymousBody=System.Debug('awesome');

Executes Apex code anonymously. Available from API version 29.0 or later.

Request Params

KeyDatatypeRequiredDescription
anonymousBodystring

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"line":-1,"column":-1,"compiled":true,"success":true,"compileProblem":null,"exceptionStackTrace":null,"exceptionMessage":null}