Create Function
Changed onCreateFunction registers a new serverless function and creates its initial code commit. Functions run as TypeScript modules in a sandboxed runtime; see initial_content for the entry-file signature and SDK import.
The new function is unpublished. To make the commit the default runnable version (and have the function appear as runnable in the Functions UI), call UpdateFunction with function.published_commit_id set and update_mask=["published_commit_id"].
Request
- Base URLhttps://example.conductor.one
- URLhttps://example.conductor.one/api/v1/functions
- AuthHTTP bearer and OAuth 2Client credentialsToken URL: /auth/v1/token
Request body
Response
Successful response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- warning
added the new
FUNCTION_TYPE_CONNECTORenum value to the//response property for the response status - info
added the new optional request property
- info
added the new
FUNCTION_TYPE_CONNECTORenum value to the request property - info
added the optional property
//to the response with the status
- warning