Skip to main content
POST
/
functions
cURL
curl --request POST \
  --url https://api.lucidtech.ai/{basePath}/functions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "metadata": {},
  "name": "<string>",
  "description": "<string>",
  "runtime": "python"
}
'
{
  "updatedTime": "<string>",
  "metadata": {},
  "updatedBy": "<string>",
  "description": "<string>",
  "functionId": "<string>",
  "createdBy": "<string>",
  "name": "<string>",
  "createdTime": "<string>",
  "managedCodeId": "<string>",
  "runtime": "python",
  "organizationId": "<string>",
  "fileUrl": "<string>",
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Content-Type
string
required

Body

application/json
metadata
object
name
string | null
Maximum string length: 4096
description
string | null
Maximum string length: 4096
runtime
enum<string>
Available options:
python,
nodejs

Response

200 response

updatedTime
string | null
required
metadata
object
required
updatedBy
string | null
required
Maximum string length: 4096
description
string | null
required
Maximum string length: 4096
functionId
string
required
createdBy
string
required
Maximum string length: 4096
name
string | null
required
Maximum string length: 4096
createdTime
string
required
managedCodeId
string | null
runtime
enum<string>
Available options:
python,
nodejs
organizationId
string
fileUrl
string | null
id
string