Skip to main content
POST
/
api
/
module-runtimes
Create OrchestratorModuleRuntime
curl --request POST \
  --url https://platform.kodexa.ai/api/module-runtimes \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "changeSequence": 123,
  "configMapName": "<string>",
  "configMapResourceVersion": "<string>",
  "cpuMillicores": 123,
  "createdOn": "2023-11-07T05:31:56Z",
  "deleteUserEmail": "<string>",
  "deleteUserId": "<string>",
  "deleted": true,
  "deletedDate": "2023-11-07T05:31:56Z",
  "deprecated": true,
  "description": "<string>",
  "dockerImageUri": "<string>",
  "environmentVars": "<unknown>",
  "ephemeralStorageMb": 123,
  "errorMessage": "<string>",
  "executionType": "<string>",
  "extensionPackRef": "<string>",
  "id": "<string>",
  "lambdaArn": "<string>",
  "lambdaFunctionName": "<string>",
  "memoryMb": 123,
  "metadata": {
    "containerUrl": "<string>",
    "deploymentDefaults": "<unknown>",
    "deploymentType": "<string>",
    "eventAction": "<string>",
    "inferenceAction": "<string>",
    "trainingAction": "<string>",
    "type": "<string>"
  },
  "name": "<string>",
  "organization": {
    "changeSequence": 123,
    "createdOn": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "updatedOn": "2023-11-07T05:31:56Z",
    "uuid": "<string>"
  },
  "organizationId": "<string>",
  "provisionedAt": "2023-11-07T05:31:56Z",
  "publicAccess": true,
  "resultQueueUrl": "<string>",
  "slug": "<string>",
  "status": "<string>",
  "template": true,
  "timeoutSeconds": 123,
  "type": "<string>",
  "updatedOn": "2023-11-07T05:31:56Z",
  "uuid": "<string>",
  "yamlSource": "<string>"
}
'
import requests

url = "https://platform.kodexa.ai/api/module-runtimes"

payload = {
"changeSequence": 123,
"configMapName": "<string>",
"configMapResourceVersion": "<string>",
"cpuMillicores": 123,
"createdOn": "2023-11-07T05:31:56Z",
"deleteUserEmail": "<string>",
"deleteUserId": "<string>",
"deleted": True,
"deletedDate": "2023-11-07T05:31:56Z",
"deprecated": True,
"description": "<string>",
"dockerImageUri": "<string>",
"environmentVars": "<unknown>",
"ephemeralStorageMb": 123,
"errorMessage": "<string>",
"executionType": "<string>",
"extensionPackRef": "<string>",
"id": "<string>",
"lambdaArn": "<string>",
"lambdaFunctionName": "<string>",
"memoryMb": 123,
"metadata": {
"containerUrl": "<string>",
"deploymentDefaults": "<unknown>",
"deploymentType": "<string>",
"eventAction": "<string>",
"inferenceAction": "<string>",
"trainingAction": "<string>",
"type": "<string>"
},
"name": "<string>",
"organization": {
"changeSequence": 123,
"createdOn": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"updatedOn": "2023-11-07T05:31:56Z",
"uuid": "<string>"
},
"organizationId": "<string>",
"provisionedAt": "2023-11-07T05:31:56Z",
"publicAccess": True,
"resultQueueUrl": "<string>",
"slug": "<string>",
"status": "<string>",
"template": True,
"timeoutSeconds": 123,
"type": "<string>",
"updatedOn": "2023-11-07T05:31:56Z",
"uuid": "<string>",
"yamlSource": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
changeSequence: 123,
configMapName: '<string>',
configMapResourceVersion: '<string>',
cpuMillicores: 123,
createdOn: '2023-11-07T05:31:56Z',
deleteUserEmail: '<string>',
deleteUserId: '<string>',
deleted: true,
deletedDate: '2023-11-07T05:31:56Z',
deprecated: true,
description: '<string>',
dockerImageUri: '<string>',
environmentVars: '<unknown>',
ephemeralStorageMb: 123,
errorMessage: '<string>',
executionType: '<string>',
extensionPackRef: '<string>',
id: '<string>',
lambdaArn: '<string>',
lambdaFunctionName: '<string>',
memoryMb: 123,
metadata: {
containerUrl: '<string>',
deploymentDefaults: '<unknown>',
deploymentType: '<string>',
eventAction: '<string>',
inferenceAction: '<string>',
trainingAction: '<string>',
type: '<string>'
},
name: '<string>',
organization: {
changeSequence: 123,
createdOn: '2023-11-07T05:31:56Z',
id: '<string>',
name: '<string>',
slug: '<string>',
updatedOn: '2023-11-07T05:31:56Z',
uuid: '<string>'
},
organizationId: '<string>',
provisionedAt: '2023-11-07T05:31:56Z',
publicAccess: true,
resultQueueUrl: '<string>',
slug: '<string>',
status: '<string>',
template: true,
timeoutSeconds: 123,
type: '<string>',
updatedOn: '2023-11-07T05:31:56Z',
uuid: '<string>',
yamlSource: '<string>'
})
};

fetch('https://platform.kodexa.ai/api/module-runtimes', 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://platform.kodexa.ai/api/module-runtimes",
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([
'changeSequence' => 123,
'configMapName' => '<string>',
'configMapResourceVersion' => '<string>',
'cpuMillicores' => 123,
'createdOn' => '2023-11-07T05:31:56Z',
'deleteUserEmail' => '<string>',
'deleteUserId' => '<string>',
'deleted' => true,
'deletedDate' => '2023-11-07T05:31:56Z',
'deprecated' => true,
'description' => '<string>',
'dockerImageUri' => '<string>',
'environmentVars' => '<unknown>',
'ephemeralStorageMb' => 123,
'errorMessage' => '<string>',
'executionType' => '<string>',
'extensionPackRef' => '<string>',
'id' => '<string>',
'lambdaArn' => '<string>',
'lambdaFunctionName' => '<string>',
'memoryMb' => 123,
'metadata' => [
'containerUrl' => '<string>',
'deploymentDefaults' => '<unknown>',
'deploymentType' => '<string>',
'eventAction' => '<string>',
'inferenceAction' => '<string>',
'trainingAction' => '<string>',
'type' => '<string>'
],
'name' => '<string>',
'organization' => [
'changeSequence' => 123,
'createdOn' => '2023-11-07T05:31:56Z',
'id' => '<string>',
'name' => '<string>',
'slug' => '<string>',
'updatedOn' => '2023-11-07T05:31:56Z',
'uuid' => '<string>'
],
'organizationId' => '<string>',
'provisionedAt' => '2023-11-07T05:31:56Z',
'publicAccess' => true,
'resultQueueUrl' => '<string>',
'slug' => '<string>',
'status' => '<string>',
'template' => true,
'timeoutSeconds' => 123,
'type' => '<string>',
'updatedOn' => '2023-11-07T05:31:56Z',
'uuid' => '<string>',
'yamlSource' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-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://platform.kodexa.ai/api/module-runtimes"

payload := strings.NewReader("{\n \"changeSequence\": 123,\n \"configMapName\": \"<string>\",\n \"configMapResourceVersion\": \"<string>\",\n \"cpuMillicores\": 123,\n \"createdOn\": \"2023-11-07T05:31:56Z\",\n \"deleteUserEmail\": \"<string>\",\n \"deleteUserId\": \"<string>\",\n \"deleted\": true,\n \"deletedDate\": \"2023-11-07T05:31:56Z\",\n \"deprecated\": true,\n \"description\": \"<string>\",\n \"dockerImageUri\": \"<string>\",\n \"environmentVars\": \"<unknown>\",\n \"ephemeralStorageMb\": 123,\n \"errorMessage\": \"<string>\",\n \"executionType\": \"<string>\",\n \"extensionPackRef\": \"<string>\",\n \"id\": \"<string>\",\n \"lambdaArn\": \"<string>\",\n \"lambdaFunctionName\": \"<string>\",\n \"memoryMb\": 123,\n \"metadata\": {\n \"containerUrl\": \"<string>\",\n \"deploymentDefaults\": \"<unknown>\",\n \"deploymentType\": \"<string>\",\n \"eventAction\": \"<string>\",\n \"inferenceAction\": \"<string>\",\n \"trainingAction\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"organization\": {\n \"changeSequence\": 123,\n \"createdOn\": \"2023-11-07T05:31:56Z\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"updatedOn\": \"2023-11-07T05:31:56Z\",\n \"uuid\": \"<string>\"\n },\n \"organizationId\": \"<string>\",\n \"provisionedAt\": \"2023-11-07T05:31:56Z\",\n \"publicAccess\": true,\n \"resultQueueUrl\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"template\": true,\n \"timeoutSeconds\": 123,\n \"type\": \"<string>\",\n \"updatedOn\": \"2023-11-07T05:31:56Z\",\n \"uuid\": \"<string>\",\n \"yamlSource\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-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://platform.kodexa.ai/api/module-runtimes")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"changeSequence\": 123,\n \"configMapName\": \"<string>\",\n \"configMapResourceVersion\": \"<string>\",\n \"cpuMillicores\": 123,\n \"createdOn\": \"2023-11-07T05:31:56Z\",\n \"deleteUserEmail\": \"<string>\",\n \"deleteUserId\": \"<string>\",\n \"deleted\": true,\n \"deletedDate\": \"2023-11-07T05:31:56Z\",\n \"deprecated\": true,\n \"description\": \"<string>\",\n \"dockerImageUri\": \"<string>\",\n \"environmentVars\": \"<unknown>\",\n \"ephemeralStorageMb\": 123,\n \"errorMessage\": \"<string>\",\n \"executionType\": \"<string>\",\n \"extensionPackRef\": \"<string>\",\n \"id\": \"<string>\",\n \"lambdaArn\": \"<string>\",\n \"lambdaFunctionName\": \"<string>\",\n \"memoryMb\": 123,\n \"metadata\": {\n \"containerUrl\": \"<string>\",\n \"deploymentDefaults\": \"<unknown>\",\n \"deploymentType\": \"<string>\",\n \"eventAction\": \"<string>\",\n \"inferenceAction\": \"<string>\",\n \"trainingAction\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"organization\": {\n \"changeSequence\": 123,\n \"createdOn\": \"2023-11-07T05:31:56Z\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"updatedOn\": \"2023-11-07T05:31:56Z\",\n \"uuid\": \"<string>\"\n },\n \"organizationId\": \"<string>\",\n \"provisionedAt\": \"2023-11-07T05:31:56Z\",\n \"publicAccess\": true,\n \"resultQueueUrl\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"template\": true,\n \"timeoutSeconds\": 123,\n \"type\": \"<string>\",\n \"updatedOn\": \"2023-11-07T05:31:56Z\",\n \"uuid\": \"<string>\",\n \"yamlSource\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://platform.kodexa.ai/api/module-runtimes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"changeSequence\": 123,\n \"configMapName\": \"<string>\",\n \"configMapResourceVersion\": \"<string>\",\n \"cpuMillicores\": 123,\n \"createdOn\": \"2023-11-07T05:31:56Z\",\n \"deleteUserEmail\": \"<string>\",\n \"deleteUserId\": \"<string>\",\n \"deleted\": true,\n \"deletedDate\": \"2023-11-07T05:31:56Z\",\n \"deprecated\": true,\n \"description\": \"<string>\",\n \"dockerImageUri\": \"<string>\",\n \"environmentVars\": \"<unknown>\",\n \"ephemeralStorageMb\": 123,\n \"errorMessage\": \"<string>\",\n \"executionType\": \"<string>\",\n \"extensionPackRef\": \"<string>\",\n \"id\": \"<string>\",\n \"lambdaArn\": \"<string>\",\n \"lambdaFunctionName\": \"<string>\",\n \"memoryMb\": 123,\n \"metadata\": {\n \"containerUrl\": \"<string>\",\n \"deploymentDefaults\": \"<unknown>\",\n \"deploymentType\": \"<string>\",\n \"eventAction\": \"<string>\",\n \"inferenceAction\": \"<string>\",\n \"trainingAction\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"organization\": {\n \"changeSequence\": 123,\n \"createdOn\": \"2023-11-07T05:31:56Z\",\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"updatedOn\": \"2023-11-07T05:31:56Z\",\n \"uuid\": \"<string>\"\n },\n \"organizationId\": \"<string>\",\n \"provisionedAt\": \"2023-11-07T05:31:56Z\",\n \"publicAccess\": true,\n \"resultQueueUrl\": \"<string>\",\n \"slug\": \"<string>\",\n \"status\": \"<string>\",\n \"template\": true,\n \"timeoutSeconds\": 123,\n \"type\": \"<string>\",\n \"updatedOn\": \"2023-11-07T05:31:56Z\",\n \"uuid\": \"<string>\",\n \"yamlSource\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "changeSequence": 123,
  "configMapName": "<string>",
  "configMapResourceVersion": "<string>",
  "cpuMillicores": 123,
  "createdOn": "2023-11-07T05:31:56Z",
  "deleteUserEmail": "<string>",
  "deleteUserId": "<string>",
  "deleted": true,
  "deletedDate": "2023-11-07T05:31:56Z",
  "deprecated": true,
  "description": "<string>",
  "dockerImageUri": "<string>",
  "environmentVars": "<unknown>",
  "ephemeralStorageMb": 123,
  "errorMessage": "<string>",
  "executionType": "<string>",
  "extensionPackRef": "<string>",
  "id": "<string>",
  "lambdaArn": "<string>",
  "lambdaFunctionName": "<string>",
  "memoryMb": 123,
  "metadata": {
    "containerUrl": "<string>",
    "deploymentDefaults": "<unknown>",
    "deploymentType": "<string>",
    "eventAction": "<string>",
    "inferenceAction": "<string>",
    "trainingAction": "<string>",
    "type": "<string>"
  },
  "name": "<string>",
  "organization": {
    "changeSequence": 123,
    "createdOn": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "updatedOn": "2023-11-07T05:31:56Z",
    "uuid": "<string>"
  },
  "organizationId": "<string>",
  "provisionedAt": "2023-11-07T05:31:56Z",
  "publicAccess": true,
  "resultQueueUrl": "<string>",
  "slug": "<string>",
  "status": "<string>",
  "template": true,
  "timeoutSeconds": 123,
  "type": "<string>",
  "updatedOn": "2023-11-07T05:31:56Z",
  "uuid": "<string>",
  "yamlSource": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication. Create one from the Kodexa platform UI under Settings > Access Tokens.

Body

application/json

An orchestrator module runtime defines a processing environment for orchestrator modules.

changeSequence
integer<int32>
configMapName
string | null
configMapResourceVersion
string | null
cpuMillicores
integer<int32>
createdOn
string<date-time>
deleteUserEmail
string | null
deleteUserId
string | null
deleted
boolean
deletedDate
string<date-time> | null
deprecated
boolean
description
string | null
dockerImageUri
string
environmentVars
any
ephemeralStorageMb
integer<int32>
errorMessage
string | null
executionType
string
extensionPackRef
string
id
string
lambdaArn
string | null
lambdaFunctionName
string | null
memoryMb
integer<int32>
metadata
object
name
string
organization
object | null
organizationId
string
provisionedAt
string<date-time> | null
publicAccess
boolean
resultQueueUrl
string | null
slug
string
status
string
template
boolean
timeoutSeconds
integer<int32>
type
string
updatedOn
string<date-time>
uuid
string
yamlSource
string | null

Response

Created OrchestratorModuleRuntime

An orchestrator module runtime defines a processing environment for orchestrator modules.

changeSequence
integer<int32>
configMapName
string | null
configMapResourceVersion
string | null
cpuMillicores
integer<int32>
createdOn
string<date-time>
deleteUserEmail
string | null
deleteUserId
string | null
deleted
boolean
deletedDate
string<date-time> | null
deprecated
boolean
description
string | null
dockerImageUri
string
environmentVars
any
ephemeralStorageMb
integer<int32>
errorMessage
string | null
executionType
string
extensionPackRef
string
id
string
lambdaArn
string | null
lambdaFunctionName
string | null
memoryMb
integer<int32>
metadata
object
name
string
organization
object | null
organizationId
string
provisionedAt
string<date-time> | null
publicAccess
boolean
resultQueueUrl
string | null
slug
string
status
string
template
boolean
timeoutSeconds
integer<int32>
type
string
updatedOn
string<date-time>
uuid
string
yamlSource
string | null