Deploy a function
post
/v1/projects/{ref}/functions/deployA new endpoint to deploy functions. It will create if function does not exist.
OAuth scopes
- edge_functions:write
Path parameters
- refRequiredstring
Project ref
Query parameters
- slugOptionalstring
- bundleOnlyOptionalboolean
Boolean string, true or false
Body
- fileOptionalArray<string>
- metadataRequiredobject
Response codes
- 201
- 401
- 402
- 403
- 429
- 500
Response (201)
1{2 "id": "lorem",3 "slug": "lorem",4 "name": "lorem",5 "status": "ACTIVE",6 "version": 42,7 "created_at": 42,8 "updated_at": 42,9 "verify_jwt": true,10 "import_map": true,11 "entrypoint_path": "lorem",12 "import_map_path": "lorem",13 "ezbr_sha256": "lorem"14}