Skip to main content
POST
/
activity-definitions
/
generate-calc-code
Generate calculation code for activity
curl --request POST \
  --url https://app.azalt.co/api/v1/activity-definitions/generate-calc-code \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "model": "<string>",
  "currentCode": "<string>"
}
'
{
  "calcCode": "<string>",
  "response": "<string>",
  "metadataSchema": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required
model
string
required
currentCode
string

Response

Successful response

calcCode
string
required
response
string
required
metadataSchema
object