---
title: "run.job-create-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/run.job-create-request"
updated: null
---

# run.job-create-request@1 · OpenVibe.Services

HTML: [run.job-create-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/run.job-create-request)

# RunJobCreateRequest `run.job-create-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: run
- Visibility: public
- Status: planned
- Compatibility: backward
- Decision: [ADR-034](/docs/adr/ADR-034)
- Schema: [`https://openvibe.network/contracts/run/job-create-request.v1.json`](/docs/contracts/run.job-create-request.json)

run.job-create-request@1 (PLANNED; plan T14 R1, ADR-034): the body of POST /api/v1/jobs on OpenVibe.Run (capability run.job.submit). The job belongs to the project the caller's token names, or, for a first-party service acting for a person (X-OV-Subject), the project it names with X-OV-Project once Network confirms the person is an admin or owner of it (ADR-003 amendment 2026-10-12); the person is then the requester and the service is recorded as via. CLASS is a platform.runtime-class@1 name; Run accepts any of them but places a job only on a node that advertises worker:<class> (platform.resource-offer@1), so a class no node runs today (browser, linux, desktop, gpu) ends expired with run.job.unplaceable. ARTIFACT is the pre-registered artifact to run (name and one exact version), required for function and code, as platform.job@1 carries it. ARGS is the artifact's declared input as JSON (at most 512 KiB serialized, else 413). INPUTS are files placed in the job directory before the process starts, each an OpenVibe.Media object pinned by its sha256: a size or digest mismatch fails the job (run.job.input\_digest\_mismatch) before the process ever runs; Run never fetches a caller-chosen URL. LIMITS are hard caps merged stricter with the node's own (platform.job@1 limits); a request over the project's tier cap is refused 422 run.limits.exceeded, never silently lowered. EGRESS is the network the job may reach, the values of OpenVibe Link's worker.egress, carried per job as the same-named platform.job@1 net: none (default; no network), public or openvibe-only. A job asking for public or openvibe-only is placed only on a node whose worker.egress allows it; a worker whose host policy is stricter runs the stricter one. REQUIREMENTS (platform.workload-requirements@1) narrow placement; absent means { kind: run.<class>, mobility: job, latency\_class: background, objective: balanced }. IDEMPOTENCY\_KEY: a repeat from the same project within 24 h with an identical body answers the first job (200, created false); with a different body 409 run.idempotency.conflict. NODE pins the machine: the device id (dev\_…) of the job's own machine in Run's placement (platform.resource-offer@1 node\_id, as GET /api/v1/machines on OpenVibe.Bot names it), answered by 409 run.job.node\_offline when that machine is not connected, never moved to another one (Codes C9c).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `class` | [platform.runtime-class](/docs/contracts/platform.runtime-class) | yes |  |  |
| `artifact` | `https://openvibe.network/contracts/run/job-create-request.v1.json#/$defs/artifact` |  |  |  |
| `args` | object |  | The artifact's declared input as JSON; default {}. |  |
| `inputs` | `https://openvibe.network/contracts/run/job-create-request.v1.json#/$defs/input` |  | Files placed in the job directory before the process starts; names are unique (else 422). | - `maxItems 32` |
| `limits` | `https://openvibe.network/contracts/run/job-create-request.v1.json#/$defs/limits` | yes |  |  |
| `ttl_ms` | integer |  | Lifetime from creation, covering the wait for a node and the run (platform.job@1 ttl\_ms); when it runs out the job ends expired. Default: limits.wall\_ms plus 600000. | - `minimum 1000`<br>- `maximum 86400000` |
| `egress` | `https://openvibe.network/contracts/run/job-create-request.v1.json#/$defs/egress` |  |  |  |
| `requirements` | [platform.workload-requirements](/docs/contracts/platform.workload-requirements) |  |  |  |
| `idempotency_key` | `https://openvibe.network/contracts/run/job-create-request.v1.json#/$defs/idempotency_key` |  |  |  |
| `node` | string |  | The machine to run on, pinned: the device id (dev\_…) of the job's own machine in Run's placement, as platform.resource-offer@1 node\_id and OpenVibe.Bot's GET /api/v1/machines name it (Codes C9c). Run places the job only on that machine and refuses it 409 run.job.node\_offline when it is not connected, never moving it to another one. Absent: Run places it on any machine that fits. | - `pattern ^dev_[0-9A-HJKMNP-TV-Z]{26}$` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: code-public-egress

~~~~
{
  "class": "code",
  "artifact": {
    "name": "py-runner",
    "version": "3.12.1"
  },
  "args": {
    "entry": "main.py"
  },
  "limits": {
    "wall_ms": 600000,
    "cpu_ms": 600000,
    "mem_bytes": 1073741824
  },
  "egress": "public",
  "requirements": {
    "kind": "run.code",
    "mobility": "job",
    "latency_class": "background",
    "objective": "cheapest",
    "trust": [
      "first-party",
      "user-owned"
    ]
  }
}
~~~~

Valid: function-with-input

~~~~
{
  "class": "function",
  "artifact": {
    "name": "thumbnail",
    "version": "1.2.0"
  },
  "args": {
    "width": 320
  },
  "inputs": [
    {
      "name": "photo.jpg",
      "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "size_bytes": 482113
    }
  ],
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000,
    "mem_bytes": 268435456
  },
  "ttl_ms": 630000,
  "egress": "none",
  "idempotency_key": "thumb:photo-7"
}
~~~~

Rejected: function-without-artifact

~~~~
{
  "class": "function",
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000,
    "mem_bytes": 268435456
  }
}
~~~~

Rejected: input-url

~~~~
{
  "class": "function",
  "artifact": {
    "name": "thumbnail",
    "version": "1.2.0"
  },
  "args": {
    "width": 320
  },
  "inputs": [
    {
      "name": "photo.jpg",
      "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "size_bytes": 482113,
      "url": "https://example.com/photo.jpg"
    }
  ],
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000,
    "mem_bytes": 268435456
  },
  "ttl_ms": 630000,
  "egress": "none",
  "idempotency_key": "thumb:photo-7"
}
~~~~

Rejected: input-without-digest

~~~~
{
  "class": "function",
  "artifact": {
    "name": "thumbnail",
    "version": "1.2.0"
  },
  "args": {
    "width": 320
  },
  "inputs": [
    {
      "name": "photo.jpg",
      "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPS"
    }
  ],
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000,
    "mem_bytes": 268435456
  },
  "ttl_ms": 630000,
  "egress": "none",
  "idempotency_key": "thumb:photo-7"
}
~~~~

Rejected: limits-without-memory

~~~~
{
  "class": "function",
  "artifact": {
    "name": "thumbnail",
    "version": "1.2.0"
  },
  "args": {
    "width": 320
  },
  "inputs": [
    {
      "name": "photo.jpg",
      "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "size_bytes": 482113
    }
  ],
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000
  },
  "ttl_ms": 630000,
  "egress": "none",
  "idempotency_key": "thumb:photo-7"
}
~~~~

Rejected: unknown-egress

~~~~
{
  "class": "function",
  "artifact": {
    "name": "thumbnail",
    "version": "1.2.0"
  },
  "args": {
    "width": 320
  },
  "inputs": [
    {
      "name": "photo.jpg",
      "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "size_bytes": 482113
    }
  ],
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000,
    "mem_bytes": 268435456
  },
  "ttl_ms": 630000,
  "egress": "lan",
  "idempotency_key": "thumb:photo-7"
}
~~~~

Rejected: version-range

~~~~
{
  "class": "function",
  "artifact": {
    "name": "thumbnail",
    "version": "^1.2"
  },
  "args": {
    "width": 320
  },
  "inputs": [
    {
      "name": "photo.jpg",
      "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "size_bytes": 482113
    }
  ],
  "limits": {
    "wall_ms": 30000,
    "cpu_ms": 30000,
    "mem_bytes": 268435456
  },
  "ttl_ms": 630000,
  "egress": "none",
  "idempotency_key": "thumb:photo-7"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('run.job-create-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
