{
 "openapi": "3.1.0",
 "info": {
  "title": "Automation Results (Platform)",
  "version": "20261030b",
  "description": "Everything a background job handed over: what it found, the level it was handled at, and what became of it. The people it was for see theirs in My approvals."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "automation-results": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "result_no": {
      "type": "string",
      "description": "Result no",
      "readOnly": true
     },
     "job_key": {
      "type": "string",
      "description": "Job key",
      "readOnly": true
     },
     "title": {
      "type": "string",
      "description": "Title",
      "readOnly": true
     },
     "summary": {
      "type": "string",
      "description": "Summary",
      "readOnly": true
     },
     "items": {
      "type": "object",
      "description": "Items",
      "readOnly": true
     },
     "item_count": {
      "type": "integer",
      "description": "Item count",
      "readOnly": true
     },
     "link": {
      "type": "string",
      "description": "Link",
      "readOnly": true
     },
     "source": {
      "type": "string",
      "description": "Source",
      "readOnly": true
     },
     "level": {
      "type": "string",
      "description": "Level",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "outcome": {
      "type": "object",
      "description": "Outcome",
      "readOnly": true
     },
     "error": {
      "type": "string",
      "description": "Error",
      "readOnly": true
     },
     "approval_id": {
      "type": "string",
      "format": "uuid",
      "description": "Approval id",
      "readOnly": true
     },
     "recipient_user_ids": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Recipient user ids",
      "readOnly": true
     },
     "recipient_roles": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Recipient roles",
      "readOnly": true
     },
     "acted_at": {
      "type": "string",
      "format": "date-time",
      "description": "Acted at",
      "readOnly": true
     },
     "acted_by": {
      "type": "string",
      "format": "uuid",
      "description": "Acted by",
      "readOnly": true
     },
     "dismissed_at": {
      "type": "string",
      "format": "date-time",
      "description": "Dismissed at",
      "readOnly": true
     },
     "dismissed_by": {
      "type": "string",
      "format": "uuid",
      "description": "Dismissed by",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/platform/automation-results": {
   "get": {
    "summary": "list automation-results",
    "operationId": "list_automation_results_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post automation results",
    "operationId": "action_automation_results_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/automation-results/{id}": {
   "get": {
    "summary": "get automation-results",
    "operationId": "get_automation_results_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put automation results",
    "operationId": "action_automation_results_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete automation results",
    "operationId": "action_automation_results_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/automation-results/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_automation_results_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/automation-results/{id}/dismiss": {
   "post": {
    "summary": "Dismiss",
    "operationId": "action_automation_results_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}