Python (SDK)
import meibelai
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(name="<value>", dsl_definition=meibelai.DslDefinition.SERVERLESS_WORKFLOW_V1_0_0, execution_mode="<value>", version="<value>", description="hoot mmm tinted wealthy brr as inasmuch malfunction", yaml_spec_content="<value>", json_spec_content={
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
}, workflow_type="<value>", workflow_task_queue="<value>", init_input={
"key": "<value>",
})
# Handle response
print(res)curl --request POST \
--url https://api.meibel.ai/v1/blueprint/ \
--header 'Content-Type: application/json' \
--header 'Meibel-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"dsl_definition": "serverless-workflow_v1.0.0",
"execution_mode": "WORKFLOW",
"version": "<string>",
"description": "<string>",
"yaml_spec_content": "<string>",
"json_spec_content": {},
"workflow_type": "BlueprintRunnerWorkflow",
"workflow_task_queue": "blueprint-runner-task-queue",
"init_input": {}
}
'const options = {
method: 'POST',
headers: {'Meibel-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
dsl_definition: 'serverless-workflow_v1.0.0',
execution_mode: 'WORKFLOW',
version: '<string>',
description: '<string>',
yaml_spec_content: '<string>',
json_spec_content: {},
workflow_type: 'BlueprintRunnerWorkflow',
workflow_task_queue: 'blueprint-runner-task-queue',
init_input: {}
})
};
fetch('https://api.meibel.ai/v1/blueprint/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meibel.ai/v1/blueprint/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'dsl_definition' => 'serverless-workflow_v1.0.0',
'execution_mode' => 'WORKFLOW',
'version' => '<string>',
'description' => '<string>',
'yaml_spec_content' => '<string>',
'json_spec_content' => [
],
'workflow_type' => 'BlueprintRunnerWorkflow',
'workflow_task_queue' => 'blueprint-runner-task-queue',
'init_input' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Meibel-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meibel.ai/v1/blueprint/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"dsl_definition\": \"serverless-workflow_v1.0.0\",\n \"execution_mode\": \"WORKFLOW\",\n \"version\": \"<string>\",\n \"description\": \"<string>\",\n \"yaml_spec_content\": \"<string>\",\n \"json_spec_content\": {},\n \"workflow_type\": \"BlueprintRunnerWorkflow\",\n \"workflow_task_queue\": \"blueprint-runner-task-queue\",\n \"init_input\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Meibel-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meibel.ai/v1/blueprint/")
.header("Meibel-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"dsl_definition\": \"serverless-workflow_v1.0.0\",\n \"execution_mode\": \"WORKFLOW\",\n \"version\": \"<string>\",\n \"description\": \"<string>\",\n \"yaml_spec_content\": \"<string>\",\n \"json_spec_content\": {},\n \"workflow_type\": \"BlueprintRunnerWorkflow\",\n \"workflow_task_queue\": \"blueprint-runner-task-queue\",\n \"init_input\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meibel.ai/v1/blueprint/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Meibel-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"dsl_definition\": \"serverless-workflow_v1.0.0\",\n \"execution_mode\": \"WORKFLOW\",\n \"version\": \"<string>\",\n \"description\": \"<string>\",\n \"yaml_spec_content\": \"<string>\",\n \"json_spec_content\": {},\n \"workflow_type\": \"BlueprintRunnerWorkflow\",\n \"workflow_task_queue\": \"blueprint-runner-task-queue\",\n \"init_input\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}blueprints
Create Blueprint
POST
/
blueprint
/
Python (SDK)
import meibelai
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(name="<value>", dsl_definition=meibelai.DslDefinition.SERVERLESS_WORKFLOW_V1_0_0, execution_mode="<value>", version="<value>", description="hoot mmm tinted wealthy brr as inasmuch malfunction", yaml_spec_content="<value>", json_spec_content={
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
}, workflow_type="<value>", workflow_task_queue="<value>", init_input={
"key": "<value>",
})
# Handle response
print(res)curl --request POST \
--url https://api.meibel.ai/v1/blueprint/ \
--header 'Content-Type: application/json' \
--header 'Meibel-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"dsl_definition": "serverless-workflow_v1.0.0",
"execution_mode": "WORKFLOW",
"version": "<string>",
"description": "<string>",
"yaml_spec_content": "<string>",
"json_spec_content": {},
"workflow_type": "BlueprintRunnerWorkflow",
"workflow_task_queue": "blueprint-runner-task-queue",
"init_input": {}
}
'const options = {
method: 'POST',
headers: {'Meibel-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
dsl_definition: 'serverless-workflow_v1.0.0',
execution_mode: 'WORKFLOW',
version: '<string>',
description: '<string>',
yaml_spec_content: '<string>',
json_spec_content: {},
workflow_type: 'BlueprintRunnerWorkflow',
workflow_task_queue: 'blueprint-runner-task-queue',
init_input: {}
})
};
fetch('https://api.meibel.ai/v1/blueprint/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meibel.ai/v1/blueprint/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'dsl_definition' => 'serverless-workflow_v1.0.0',
'execution_mode' => 'WORKFLOW',
'version' => '<string>',
'description' => '<string>',
'yaml_spec_content' => '<string>',
'json_spec_content' => [
],
'workflow_type' => 'BlueprintRunnerWorkflow',
'workflow_task_queue' => 'blueprint-runner-task-queue',
'init_input' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Meibel-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meibel.ai/v1/blueprint/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"dsl_definition\": \"serverless-workflow_v1.0.0\",\n \"execution_mode\": \"WORKFLOW\",\n \"version\": \"<string>\",\n \"description\": \"<string>\",\n \"yaml_spec_content\": \"<string>\",\n \"json_spec_content\": {},\n \"workflow_type\": \"BlueprintRunnerWorkflow\",\n \"workflow_task_queue\": \"blueprint-runner-task-queue\",\n \"init_input\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Meibel-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meibel.ai/v1/blueprint/")
.header("Meibel-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"dsl_definition\": \"serverless-workflow_v1.0.0\",\n \"execution_mode\": \"WORKFLOW\",\n \"version\": \"<string>\",\n \"description\": \"<string>\",\n \"yaml_spec_content\": \"<string>\",\n \"json_spec_content\": {},\n \"workflow_type\": \"BlueprintRunnerWorkflow\",\n \"workflow_task_queue\": \"blueprint-runner-task-queue\",\n \"init_input\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meibel.ai/v1/blueprint/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Meibel-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"dsl_definition\": \"serverless-workflow_v1.0.0\",\n \"execution_mode\": \"WORKFLOW\",\n \"version\": \"<string>\",\n \"description\": \"<string>\",\n \"yaml_spec_content\": \"<string>\",\n \"json_spec_content\": {},\n \"workflow_type\": \"BlueprintRunnerWorkflow\",\n \"workflow_task_queue\": \"blueprint-runner-task-queue\",\n \"init_input\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
AddBlueprintRequest
DslDefinition
Available options:
serverless-workflow_v1.0.0 Response
Successful Response
AddBlueprintResponse
Was this page helpful?
⌘I