Read file
Reads one file, from the workspace or from a version's snapshot. Files larger than 2 MiB are refused.
Authorization
BearerAuth A team API token, created by a team owner and presented as
Authorization: Bearer fnt_…. The secret is shown once at creation and
stored only as a hash.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v1.FunctionService/ReadFile" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"path": "string",
"content": "string",
"contentBase64": "string",
"binary": true
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}Promote a version POST
Points the function's traffic at an already-built version. This is both "deploy" and "roll back" — a rollback is just promoting an older version, and is instant because nothing is rebuilt.
Redeploy a version POST
Produces a new version from an existing version's snapshot. This is how a failed build is retried and how an environment or secret change is applied, since a running version's environment is fixed when it is created. The version it is asked about is never mutated.