Functions

Get a function's source files

The source files of a managed-build deployment: the current one, or the one named by deployment_id. A function deployed as a single bundled module returns its deploymentId with an empty files list. deploymentId is null only when the function has no deployment.

get/functions/{id}/source

Request

  • Base URL
    https://api.primitive.dev/v1
  • URL
    https://api.primitive.dev/v1/functions/{id}/source
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

The function id.

Query parameters

deployment_idstring uuid

A deployment of this function. Defaults to the current deployment.

Response

Get a function's source files

successtrue required

Changes

No operation changes recorded.