A code run along with its associated, code repo, configuration, input and outputs.

Writable Fields:

run_date: datetime of the CodeRun

description (optional): Free text description of the CodeRun

code_repo (optional): Reference to the Object associated with the StorageLocation where the code repository is stored

model_config: Reference to the Object for the YAML configuration used for the CodeRun

submission_script: Reference to the Object for the submission script used for the CodeRun

inputs: List of ObjectComponent that the CodeRun used as inputs

outputs: List of ObjectComponent that the CodeRun produced as outputs

uuid (optional): UUID of the CodeRun. If not specified a UUID is generated automatically.

Read-only Fields:

url: Reference to the instance of the ModelRun, final integer is the ModelRun id

last_updated: Datetime that this record was last updated

updated_by: Reference to the user that updated this record

ro_crate: The RO Crate containing this CodeRun plus any available input and output files

GET /api/code_run/2/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "https://data.fairdatapipeline.org/api/code_run/2/?format=api",
    "ro_crate": "https://data.fairdatapipeline.org/api/ro-crate/code-run/2/",
    "uuid": "3728840c-e8ba-4faf-8bdf-3810dd1e5598",
    "last_updated": "2026-10-03T16:37:36.994696Z",
    "run_date": "2026-10-03T17:36:08Z",
    "description": "SEIRS Model R",
    "updated_by": "https://data.fairdatapipeline.org/api/users/2/?format=api",
    "code_repo": "https://data.fairdatapipeline.org/api/object/9/?format=api",
    "model_config": "https://data.fairdatapipeline.org/api/object/8/?format=api",
    "submission_script": "https://data.fairdatapipeline.org/api/object/10/?format=api",
    "inputs": [
        "https://data.fairdatapipeline.org/api/object_component/1/?format=api"
    ],
    "outputs": [
        "https://data.fairdatapipeline.org/api/object_component/7/?format=api",
        "https://data.fairdatapipeline.org/api/object_component/11/?format=api"
    ]
}