Skip to main content
POST
/
blueprint
/
{blueprint_id}
/
task
Python (SDK)
from meibelai import Meibelai
import os


with Meibelai(
    api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:

    res = m_client.blueprints.create_blueprint_task(blueprint_id="<id>", name="<value>", input_schema={
        "key": "<value>",
    }, output_schema={
        "key": "<value>",
        "key1": "<value>",
        "key2": "<value>",
    }, type_="<value>", description="cake scientific wetly", config_schema={
        "key": "<value>",
    }, tool_schema={
        "key": "<value>",
        "key1": "<value>",
        "key2": "<value>",
    })

    # Handle response
    print(res)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Meibel-API-Key
string
header
required

Path Parameters

blueprint_id
string
required

Body

application/json

AddBlueprintTaskRequest

name
string
required
input_schema
Input Schema · object
required
output_schema
Output Schema · object
required
type
string | null
description
string | null
config_schema
Config Schema · object
tool_schema
Tool Schema · object

Response

Successful Response