Add a new function for specific schema
cURL
curl --request POST \ --url https://api.fluxend.app/functions/{schema} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --header 'X-Project: <x-project>' \ --data '{ "definition": "<string>", "language": "<string>", "name": "<string>", "parameters": [ { "name": "<string>", "type": "<string>" } ], "projectUUID": "<string>", "return_type": "<string>" }'
{ "content": { "dataType": "<string>", "definition": "<string>", "language": "<string>", "name": "<string>", "type": "<string>" }, "errors": [ "<string>" ], "metadata": "<any>", "success": true }
Bearer Token
Project UUID
Function details
The body is of type object.
object
Function created
The response is of type object.