> ## Documentation Index > Fetch the complete documentation index at: https://support.fortanix.com/llms.txt > Use this file to discover all available pages before exploring further. # Create a finalized workflow graph request via approval ## OpenAPI ````json POST /api/v1/confidential_computing/workflows/final/graphs { "openapi": "3.0.0", "info": { "description": "**API of the Fortanix Unified Data and AI Security Platform**\n\nThe API client *must* follow HTTP redirects, including 308 redirects. Many HTTP libraries (such as Python Requests, JavaScript fetch) do this by default. With cURL, you must pass `--location`.\n", "title": "Armor API", "version": "0.1.0" }, "servers": [ { "url": "https://api.armor.fortanix.com" } ], "tags": [ { "description": "APIs regarding creating or ending a session.", "name": "Authentication" }, { "description": "APIs regarding obtaining details about the connection.", "name": "DiscoveryConnection" }, { "description": "APIs regarding obtaining details about the policies.", "name": "DiscoveryPolicies" }, { "description": "APIs regarding obtaining details about the scans.", "name": "DiscoveryScan" }, { "description": "APIs regarding obtaining the reports related to AWS.", "name": "DiscoveryAwsReports" }, { "description": "APIs regarding obtaining the reports related to Azure.", "name": "DiscoveryAzureReports" }, { "description": "APIs regarding obtaining the reports for Services.", "name": "DiscoveryServicesReports" }, { "description": "APIs regarding obtaining the PQC reports.", "name": "DiscoveryPqcReports" }, { "description": "APIs regarding obtaining the reports related to DSM.", "name": "DiscoveryDsmReports" }, { "description": "APIs regarding obtaining the details about the inventory objects.", "name": "DiscoveryInventory" }, { "description": "APIs regarding obtaining the reports related to On-Prem infrastructure.", "name": "DiscoveryOnPremReports" }, { "description": "APIs regarding obtaining the details about the inventory objects associated to a scan.", "name": "DiscoveryScanInventory" } ], "paths": { "/api/v1/confidential_computing/workflows/final/graphs": { "post": { "summary": "Create a finalized workflow graph request via approval.", "tags": [ "ConfidentialComputingWorkflowFinal" ], "operationId": "createFinalWorkflowGraph", "x-auth-resource": "ApprovalAuth", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateFinalWorkflowGraph" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FinalWorkflow" } } } } }, "security": [ { "bearerToken": [] } ] } } }, "components": { "schemas": { "CreateFinalWorkflowGraph": { "type": "object", "description": "", "required": [ "name", "description", "contents" ], "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "group_id": { "type": "string", "format": "uuid" }, "contents": { "$ref": "#/components/schemas/CreateWorkflowVersionRequest" } } }, "FinalWorkflow": { "type": "object", "required": [ "graph_id", "name", "created_at", "updated_at", "description", "versions", "group_id", "acct_id" ], "properties": { "graph_id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "group_id": { "type": "string", "format": "uuid" }, "acct_id": { "type": "string", "format": "uuid" }, "created_at": { "type": "integer", "format": "int64", "description": "Dataset creation time (seconds since epoch)." }, "updated_at": { "type": "integer", "format": "int64", "description": "Last update UNIX timestamp (seconds since epoch)." }, "description": { "type": "string" }, "versions": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/FinalWorkflowGraph" } }, "type": { "$ref": "#/components/schemas/WorkflowType" } } }, "CreateWorkflowVersionRequest": { "type": "object", "description": "", "required": [ "objects", "edges" ], "properties": { "objects": { "type": "object", "x-sorted": true, "additionalProperties": { "$ref": "#/components/schemas/WorkflowObject" } }, "edges": { "type": "object", "x-sorted": true, "additionalProperties": { "$ref": "#/components/schemas/WorkflowEdge" } }, "metadata": { "$ref": "#/components/schemas/WorkflowMetadata" }, "labels": { "type": "object", "x-sorted": true, "additionalProperties": { "type": "string" } } } }, "FinalWorkflowGraph": { "type": "object", "description": "", "required": [ "created_at", "objects", "edges", "runtime_configs", "labels" ], "properties": { "created_at": { "type": "integer", "format": "int64", "description": "Dataset creation time." }, "objects": { "type": "object", "x-sorted": true, "additionalProperties": { "$ref": "#/components/schemas/WorkflowObject" } }, "edges": { "type": "object", "x-sorted": true, "additionalProperties": { "$ref": "#/components/schemas/WorkflowEdge" } }, "metadata": { "$ref": "#/components/schemas/WorkflowMetadata" }, "runtime_configs": { "type": "object", "x-sorted": true, "additionalProperties": { "$ref": "#/components/schemas/WorkflowObjectFinalApp" } }, "deployment": { "$ref": "#/components/schemas/WorkflowDeployment" }, "labels": { "type": "object", "x-sorted": true, "additionalProperties": { "type": "string" } } } }, "WorkflowType": { "type": "string", "description": "Workflow is owned or Shared", "enum": [ "OWNED", "SHARED" ] }, "WorkflowObject": { "type": "object", "description": "", "required": [ "name", "ref" ], "properties": { "name": { "type": "string" }, "user_id": { "type": "string", "format": "uuid" }, "description": { "type": "string" }, "ref": { "$ref": "#/components/schemas/WorkflowObjectRef" } } }, "WorkflowEdge": { "type": "object", "description": "", "required": [ "source", "target" ], "properties": { "source": { "$ref": "#/components/schemas/WorkflowEdgeLink" }, "target": { "$ref": "#/components/schemas/WorkflowEdgeLink" } } }, "WorkflowMetadata": { "type": "object", "description": "", "required": [ "nodes" ], "properties": { "nodes": { "type": "object", "additionalProperties": { "type": "object" } }, "parent": { "$ref": "#/components/schemas/WorkflowLinkMetadata" }, "project": { "type": "string" } } }, "WorkflowObjectFinalApp": { "type": "object", "description": "", "required": [ "image_id", "config_id", "child_nodes" ], "properties": { "image_id": { "type": "string", "format": "uuid" }, "config_id": { "type": "string" }, "deployment": { "$ref": "#/components/schemas/WorkflowAppDeployment" }, "child_nodes": { "type": "array", "items": { "type": "string" } } } }, "WorkflowDeployment": { "type": "object", "description": "Deployment info for a workflow. Exactly one of kubernetes_single_job or aci_single_job field must be set.", "minProperties": 1, "maxProperties": 1, "properties": { "kubernetes_single_job": { "$ref": "#/components/schemas/KubernetesSingleJob" }, "aci_single_job": { "$ref": "#/components/schemas/AciSingleJob" } } }, "WorkflowObjectRef": { "type": "object", "description": "", "properties": { "placeholder": { "$ref": "#/components/schemas/WorkflowObjectRefPlaceholder" }, "dataset": { "$ref": "#/components/schemas/WorkflowObjectRefDataset" }, "app": { "$ref": "#/components/schemas/WorkflowObjectRefApp" } } }, "WorkflowEdgeLink": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string" }, "port": { "type": "string" } } }, "WorkflowLinkMetadata": { "type": "object", "description": "The final workflow from which this draft was derived. This field may point to a deleted final workflow in which you should treat it as if it's not present.", "required": [ "graph_id", "source_version" ], "properties": { "graph_id": { "type": "string", "format": "uuid" }, "source_version": { "type": "integer" } } }, "WorkflowAppDeployment": { "type": "object", "description": "Deployment info for an app. Exactly one of kubernetes or aci field must be set.", "minProperties": 1, "maxProperties": 1, "properties": { "kubernetes": { "$ref": "#/components/schemas/WorkflowAppKubernetes" }, "aci": { "$ref": "#/components/schemas/WorkflowAppAci" } } }, "KubernetesSingleJob": { "type": "object", "description": "", "required": [ "namespace", "cluster_id" ], "properties": { "namespace": { "type": "string" }, "cluster_id": { "type": "string", "format": "uuid" } } }, "AciSingleJob": { "type": "object", "description": "", "required": [ "cluster_id" ], "properties": { "cluster_id": { "type": "string", "format": "uuid" }, "deployment_location": { "type": "string" } } }, "WorkflowObjectRefPlaceholder": { "type": "object", "description": "", "required": [ "kind" ], "properties": { "kind": { "type": "string", "enum": [ "dataset", "app", "script" ] }, "acct_id": { "type": "string", "format": "uuid" }, "group_id": { "type": "string", "format": "uuid" } } }, "WorkflowObjectRefDataset": { "type": "object", "description": "", "required": [ "dataset_id" ], "properties": { "dataset_id": { "type": "string", "format": "uuid" }, "acct_id": { "type": "string", "format": "uuid" }, "group_id": { "type": "string", "format": "uuid" } } }, "WorkflowObjectRefApp": { "type": "object", "description": "", "required": [ "image_id", "config_id" ], "properties": { "image_id": { "type": "string", "format": "uuid" }, "config_id": { "type": "string" }, "acct_id": { "type": "string", "format": "uuid" }, "group_id": { "type": "string", "format": "uuid" } } }, "WorkflowAppKubernetes": { "type": "object", "description": "", "required": [ "job_spec" ], "properties": { "job_spec": { "type": "object" } } }, "WorkflowAppAci": { "type": "object", "description": "", "required": [ "exposed_ports", "env_vars" ], "properties": { "exposed_ports": { "description": "List of ports exposed for the azure container instance.", "type": "array", "items": { "$ref": "#/components/schemas/DockerNetworkPort" } }, "env_vars": { "type": "object", "x-sorted": true, "additionalProperties": { "type": "string" } } } }, "DockerNetworkPort": { "type": "object", "description": "A port exposed by a docker container.", "required": [ "port", "protocol" ], "properties": { "port": { "type": "integer", "description": "A valid, specific port number from 1..65535 (inclusive)." }, "protocol": { "$ref": "#/components/schemas/DockerNetworkProtocol" } } }, "DockerNetworkProtocol": { "type": "string", "description": "Protocol Associated with a Port exposed by a docker container.", "enum": [ "Tcp", "Udp" ] } }, "securitySchemes": { "bearerToken": { "type": "apiKey", "in": "header", "name": "Authentication", "description": "A JWT bearer token to be passed once authenticated." } } } } ````