{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/star365-site/json-schema/star365-site-post-api-companies-companyid-routines-request-schema.json",
  "title": "PostApiCompaniesCompanyidRoutinesRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/star365-site-openapi-generated.yml#/components/schemas/PostApiCompaniesCompanyidRoutinesRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Routine name"
    },
    "description": {
      "type": "string",
      "description": "Human-readable description of the routine"
    },
    "assigneeAgentId": {
      "type": "string",
      "description": "Agent who receives each run"
    },
    "projectId": {
      "type": "string",
      "description": "Project this routine belongs to"
    },
    "goalId": {
      "type": "string",
      "description": "Goal to link runs to"
    },
    "parentIssueId": {
      "type": "string",
      "description": "Parent issue for created run issues"
    },
    "priority": {
      "type": "string",
      "description": "critical , high , medium (default), low"
    },
    "status": {
      "type": "string",
      "description": "active (default), paused , archived"
    },
    "concurrencyPolicy": {
      "type": "string",
      "description": "Behaviour when a run fires while a previous one is still active"
    },
    "catchUpPolicy": {
      "type": "string",
      "description": "Behaviour for missed scheduled runs"
    }
  },
  "required": [
    "title",
    "assigneeAgentId",
    "projectId"
  ]
}