Authorizations
App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations
Path Parameters
Function slug identifier
1"my-function"
Body
URL of the entry point of the application. This is the file that will be executed when the deployment is invoked.
"main.ts"
A map whose key represents a file path, and the value is an asset that composes the deployment.
{
"main.ts": {
"kind": "file",
"content": "Deno.serve((req: Request) => new Response(\"Hello World\"));",
"encoding": "utf-8"
},
"symlink.ts": { "kind": "symlink", "target": "main.ts" }
}URL of the import map file. If null, auto-discovery will be performed. If empty string, no import map will be used.
"import_map.json"
URL of the lock file. If null, auto-discovery will be performed. If empty string, no lock file will be used.
"deno.lock"
Response
Create a new deployment for the function
Deployment ID (not UUID v4)
"abcde12vwxyz"
Project UUID
"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
The description of this deployment
"My deployment"
The status of the deployment
failed, pending, success "pending"
When the deployment was created
"2021-08-01T00:00:00Z"
When the deployment was last updated
"2021-08-01T00:00:00Z"