Try it free

Invoke an app function with POST

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Invoke a Dynatrace app function through the App Functions API with POST, using the app ID and function name path parameters to run server-side logic.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/v1/apps/{appId}/api/{functionName}

Overview

You use the appId and functionName path parameters to choose which installed app function to execute. The operation returns 200 OK when Dynatrace runs the function successfully.

Authentication

To execute this request, you need a platform token or OAuth access token with app-engine:apps:run scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
appIdstring

The unique identifier for the app

pathRequired
functionNamestring

The name of the called function

pathRequired
bodystring

Request body for HTTP methods supporting body.

bodyOptional

Request body objects

The RequestBody object

Request body for HTTP methods supporting body.

Response

Response codes

CodeTypeDescription
200string

OK

400ErrorEnvelope

Bad Request

404string

The app was not found.

409string

The app's backend is being deployed and not able to serve requests yet.

540FunctionErrorResponse

JavaScript Error occurred

541FunctionErrorResponse

Runtime Error occurred

Response body objects

The ResponseBody object

The ErrorEnvelope object

Error response for all 4xx and 5xx errors.

ElementTypeDescription
errorError

Contains information for 4xx and 5xx errors.

The Error object

Contains information for 4xx and 5xx errors.

ElementTypeDescription
codeinteger

The HTTP status code

messagestring

The error message

detailsErrorDetails

Contains details for 4xx and 5xx errors.

helpstring

Additional information related to the error

retryAfterSecondsinteger

Seconds to wait until the next retry

The ErrorDetails object

Contains details for 4xx and 5xx errors.

ElementTypeDescription
errorRefstring

Generated unique value for 5xx errors.

traceIdstring

OpenTelemetry trace id of the trace where error occurs.

errorCodestring

An optional error code that contains more detailed error information than the HTTP response code alone.

errorCodePropertiesobject

Additional properties related to the provided error code

constraintViolationsConstraintViolation[]

A list of constraint violations

The ConstraintViolation object

Contains information about a constraint violation caused by invalid input.

ElementTypeDescription
pathstring

The path of the property that caused the constraint violation

messagestring

The error message

errorCodestring

An optional error code that contains more detailed error information.

errorCodePropertiesobject

Additional properties related to the provided error code.

Response body JSON models

{
"error": {
"code": 1,
"message": "string",
"details": {
"errorRef": "string",
"traceId": "string",
"errorCode": "string",
"errorCodeProperties": {},
"constraintViolations": [
{
"path": "string",
"message": "string",
"errorCode": "string",
"errorCodeProperties": {}
}
]
},
"help": "string",
"retryAfterSeconds": 1
}
}
Related tags
Platform APIDynatrace Platform