Code Pro
Code Pro · Actions GPT
Function Creation API
API for creating a new function in the system.
POST /createCreateFunctionCreates a new function with specified parameters.
Schéma original API
{
"openapi": "3.1.0",
"info": {
"title": "Function Creation API",
"description": "API for creating a new function in the system.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://code-pro.ssnow.tech/"
}
],
"paths": {
"/create": {
"post": {
"description": "Creates a new function with specified parameters.",
"operationId": "CreateFunction",
"x-openai-isConsequential": false,
"requestBody": {
"description": "Function creation data",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Code for the function"
}
},
"required": [
"code"
]
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Detailed response message including runtime information and any output from the function."
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {}
}
}