{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-task-upsert-result-schema.json",
  "title": "TaskUpsertResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-tasks-api-openapi.yml#/components/schemas/TaskUpsertResult",
  "type": "object",
  "required": [
    "task"
  ],
  "properties": {
    "task": {
      "type": "object",
      "required": [
        "id",
        "created"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "created": {
          "type": "boolean",
          "description": "false on an idempotent re-pick (200)"
        }
      }
    },
    "runId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Present only when `runWorkflowSlug` was sent and the task was newly created: the started run’s id to poll, or null when the workflow did not start. Poll GET /api/v1/projects/{id}/runs/{runId}."
    },
    "executionId": {
      "type": [
        "string",
        "null"
      ],
      "deprecated": true,
      "description": "Alias of `runId` — the name this family shipped with; present exactly when `runId` is. Read `runId`."
    }
  }
}