Tests
Function tests and management
Usage
In order to prevent prompt adoption, these tests can't be edited or altered without a new function version.
An agent can create tests for a function to prevent erroneous code from deploying in your API.
POST
/function/tests
Crons will handle your scheduled operations
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
function
string
Function name
Response
{
"tests": [
{
"name": "test_objective",
"starting_date" : "dd-mm-aa",
"status": "passed"
}
],
"error": null
}
Last updated
Was this helpful?