Create a functiondeprecated
post
/v1/projects/{ref}/functionsThis endpoint is deprecated - use the deploy endpoint. Creates a function and adds it to the specified project.
OAuth scopes
- edge_functions:write
The fine-grained token must include the following permissions to access this endpoint:
- edge_functions_write
Path parameters
- refRequiredstring
Project ref
Query parameters
- slugOptionalstring
- nameOptionalstring
- verify_jwtOptionalstring
- import_mapOptionalstring
- entrypoint_pathOptionalstring
- import_map_pathOptionalstring
- ezbr_sha256Optionalstring
Body
- slugRequiredstring
- nameRequiredstring
- bodyRequiredstring
- verify_jwtOptionalboolean
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": -9007199254740991,7 "created_at": -9007199254740991,8 "updated_at": -9007199254740991,9 "verify_jwt": true,10 "import_map": true,11 "entrypoint_path": "lorem",12 "import_map_path": "lorem",13 "ezbr_sha256": "lorem"14}