Import a workflow
Imports a workflow from previously exported data. If a workflow with the same slug already exists in the team, it is overwritten (all fields are updated and the version is incremented). Otherwise a new workflow is created.
Documentation Index
Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):
- JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
- Credential callers (
sk-,dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
"019abc12-4567-7890-abcd-ef1234567891"
Body
Globally unique URL-friendly identifier for the workflow. Lowercase letters, numbers, and hyphens only.
2 - 100^[a-z0-9]+(?:-[a-z0-9]+)*$"sd-portrait-v2"
Human-readable name for this workflow template.
1 - 255"SD 1.5 Portrait Generator"
Tool-specific workflow definition. For tool_type=comfyui, this is a
ComfyUI API workflow JSON object. For tool_type=nerfstudio, this is a
Nerfstudio 3DGS pipeline spec.
{
"5": {
"class_type": "EmptyLatentImage",
"inputs": {
"width": 512,
"height": 512,
"batch_size": 1
}
},
"6": {
"class_type": "CLIPTextEncode",
"inputs": {
"text": "a portrait photo",
"clip": ["4", 0]
}
}
}Optional description of what this workflow does.
2000Configurable parameters that can be overridden at run time. Each parameter maps a user-facing key to a tool-specific injection target. See ParameterDefInput for the mapping mechanism.
Tool runtime used by this workflow:
comfyui: ComfyUI API workflow JSON (default, backward compatible).nerfstudio: Nerfstudio 3DGS pipeline spec.
comfyui, nerfstudio "comfyui"
Labels that an agent must have in order to receive tasks from this workflow. All labels must match (AND logic). If empty or omitted, any agent can execute it.
["gpu", "sd15"]Maximum execution time in seconds after agent ACK. If the agent does not report completion within this time, the task is marked as failed and may be retried. 0 means use the gateway's default max timeout (typically 24 hours).
x >= 0Maximum number of automatic retries on failure. When a task fails (agent disconnect, timeout, ComfyUI error), a new retry task is created automatically up to this limit. 0 means no retry.
x >= 0Preferred GPU type for agent matching (e.g. "RTX_4090", "A100_80GB"). When set, the scheduler prioritises agents with this GPU type. If empty, any available GPU is accepted.
100"RTX_4090"
Default compute source for tasks created from this workflow.
Can be overridden per-run. If not set, defaults to agent.
agent, comfy_cloud "agent"
Minimum GPU VRAM required (decimal GB) for an agent to run
this workflow. The dispatcher's hard filter excludes agents
whose advertised vram_total_gb is below this number. 0 means
no requirement (default).
0 <= x <= 204824
Model paths the workflow needs (relative to the runtime's
models root, e.g. checkpoints/sdxl-base.safetensors). The
dispatcher's hard filter excludes any agent missing one or
more of these files. Empty / omitted means no requirement.
512[
"checkpoints/sdxl-base.safetensors",
"loras/style.safetensors"
]Response
Workflow imported (created or updated)
UUID of the created or updated resource.
"019abc12-3456-7890-abcd-ef1234567890"
