{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/controlplane/main/json-schema/controlplane-post-org-my-org-gvc-my-gvc-workload-workloadid-command-request-schema.json",
  "title": "PostOrgMyOrgGvcMyGvcWorkloadWorkloadidCommandRequest",
  "x-generated": "2026-10-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/controlplane-openapi-generated.yml#/components/schemas/PostOrgMyOrgGvcMyGvcWorkloadWorkloadidCommandRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Command type, must be \"runCronWorkload\"."
    },
    "spec": {
      "type": "object",
      "description": "Specification for the on‑demand execution."
    },
    "spec.location": {
      "type": "string",
      "description": "The name of the location as specified in your GVC configuration."
    },
    "spec.activeDeadlineSeconds": {
      "type": "integer",
      "description": "Maximum number of seconds this on‑demand execution may run before Control Plane stops it."
    },
    "spec.containerOverrides": {
      "type": "array",
      "description": "List of objects that override specific parts of a container’s configuration."
    },
    "spec.containerOverrides[].name": {
      "type": "string",
      "description": "Name of the container to override in the workload specification."
    },
    "spec.containerOverrides[].command": {
      "type": "string",
      "description": "A new command for the container during this execution only."
    },
    "spec.containerOverrides[].cpu": {
      "type": "string",
      "description": "A new CPU configuration for the container during this execution."
    },
    "spec.containerOverrides[].memory": {
      "type": "string",
      "description": "A new memory allocation for the container during this execution."
    },
    "spec.containerOverrides[].image": {
      "type": "string",
      "description": "A new image for the container during this execution."
    },
    "spec.containerOverrides[].args": {
      "type": "array",
      "description": "A new list of arguments for the container during this execution only."
    },
    "spec.containerOverrides[].env": {
      "type": "array",
      "description": "A new list of environment variables for the container during this execution only."
    },
    "spec.containerOverrides[].env[].name": {
      "type": "string",
      "description": "Environment variable name."
    },
    "spec.containerOverrides[].env[].value": {
      "type": "string",
      "description": "Environment variable value."
    }
  },
  "required": [
    "type",
    "spec",
    "spec.location",
    "spec.containerOverrides[].name",
    "spec.containerOverrides[].env[].name",
    "spec.containerOverrides[].env[].value"
  ]
}