Load Developed Outputs

Loads a set of developed outputs into a trial in globalMOO.

Endpoint

POST /trials/{trial_id}/load-developed-outputs

Path Parameters

Parameter
Type
Required
Description

trial_id

integer

Yes

ID of the trial

Request Parameters

Parameter
Type
Required
Description

count

integer

Yes

Number of output variables (must be > 0)

outputs

array[array[float]]

Yes

Array of output arrays (must match count)

Response Fields

Field
Type
Description

id

integer

Unique identifier for the output set

trial_id

integer

ID of the trial these outputs belong to

status

string

Current trial status after loading outputs

outputs

array[array[float]]

Array of output arrays, each containing count float values

created_at

string

Creation timestamp (ISO 8601)

updated_at

string

Last update timestamp (ISO 8601)

Request Format

{
    "count": 3,
    "outputs": [
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ]
}

Response Format

{
    "id": 123,
    "trial_id": 456,
    "status": "active",
    "outputs": [
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ],
    "created_at": "2025-01-31T10:00:00.000Z",
    "updated_at": "2025-01-31T10:00:00.000Z"
}

Examples

from globalmoo import Client

client = Client(api_key="your-api-key")
result = client.load_developed_outputs(
    trial_id=123,
    count=3,
    outputs=[
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ]
)

print(f"Status: {result.status}")

Error Responses

Status Code
Description

400

Invalid request - Malformed output data

401

Unauthorized - Invalid API key

404

Trial not found

429

Too many requests - Rate limit exceeded

500

Internal server error

Status Values

Possible status values:

  • active - Trial is currently active

  • completed - Trial has completed successfully

  • failed - Trial failed due to an error

Validation Rules

  • Trial ID must be a positive integer

  • Count must be a positive integer matching the trial output count

  • Each output array must contain exactly 'count' values

  • All output values must be valid floating point numbers

  • The outputs array must contain at least one case

  • Trial must exist and be active

Last updated