Remote-api update jobs and results

Hi we use jenkins for presentation, I just push the jobs via remote api:
status and a zip-file with a presentation of the results.

But I’m unable to set the execution time. it shows up as the few milliseconds it takes to submit the job:

$ bash -c -l "python bin/jenkins.py --report=${TESTENV}.zip --jobname=${JENKINSJOB} --webhost=${TESTENV} --tenant=${TENANT} --webdriver=${WEBDRIVER}Headless" || true
sourching base
20250129072624.110|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:157|lastBuild num:843 at time:2025-01-27 07:26:37(1 day, 23:59:47 ago)
20250129072624.110|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:172|file:gitlab/test1.zip
20250129072624.110|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:176|webhost=test1
20250129072624.110|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:179|webdriver=chromeHeadless
20250129072624.110|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:182|tenant=ikomm
20250129072624.111|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:195|job status we pass to jenkins: status=passed
20250129072630.247|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:212|job:844 to jenkins:https://<jenkinsserver>/job/Fido2%20Solutions/job/multitenant-fullstack-test-ikomm-test1/844/ with result:SUCCESS
20250129072630.247|INFO|/builds/id-pro/fido2/multitenant-fullstack-test/bin/jenkins.py:238|writing file:urls.json

output of: https:///job/Fido2%20Solutions/job/multitenant-fullstack-test-ikomm-test1/844/api/python?pretty=true

Can I update those millis or duration entries via rest api or any other plugin?
I have no access to the server. only user and admin via GUI.

{
  "_class" : "hudson.model.FreeStyleBuild",
  "actions" : [
    {
      "_class" : "hudson.model.ParametersAction",
      "parameters" : [
        {
          "_class" : "hudson.model.FileParameterValue",
          "name" : "gitlab/test1.zip"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "WEBHOST",
          "value" : "test1"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "WEBDRIVER",
          "value" : "chromeHeadless"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "TENANT",
          "value" : "ikomm"
        },
        {
          "_class" : "hudson.model.StringParameterValue",
          "name" : "STATUS",
          "value" : "passed"
        }
      ]
    },
    {
      "_class" : "hudson.model.CauseAction",
      "causes" : [
        {
          "_class" : "hudson.model.Cause$UserIdCause",
          "shortDescription" : "Started by user jenkins",
          "userId" : "jenkins",
          "userName" : "jenkins"
        }
      ]
    },
    {
      "_class" : "jenkins.metrics.impl.TimeInQueueAction",
      "blockedDurationMillis" : 0,
      "blockedTimeMillis" : 0,
      "buildableDurationMillis" : 2,
      "buildableTimeMillis" : 2,
      "buildingDurationMillis" : 150,
      "executingTimeMillis" : 150,
      "executorUtilization" : 1.0,
      "subTaskCount" : 0,
      "waitingDurationMillis" : 5367,
      "waitingTimeMillis" : 5367
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      
    },
    {
      "_class" : "org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"
    }
  ],
  "artifacts" : [
    
  ],
  "building" : False,
  "description" : None,
  "displayName" : "#844 - ikomm - passed",
  "duration" : 150,
  "estimatedDuration" : 156,
  "executor" : None,
  "fullDisplayName" : "Fido2 Solutions » multitenant-fullstack-test-ikomm-test1 #844 - ikomm - passed",
  "id" : "844",
  "inProgress" : False,
  "keepLog" : False,
  "number" : 844,
  "queueId" : 10314,
  "result" : "SUCCESS",
  "timestamp" : 1738131989581,
  "url" : "https://<jenkinsserver>/job/Fido2%20Solutions/job/multitenant-fullstack-test-ikomm-test1/844/",
  "builtOn" : "",
  "changeSet" : {
    "_class" : "hudson.scm.EmptyChangeLogSet",
    "items" : [
      
    ],
    "kind" : None
  },
  "culprits" : [
    
  ]
}

Is it possible to fix this? Some variable to enclose in the job submission, or something I can manipulate afterwards after enclosing when jobid?

Old bug still untouched: https://issues.jenkins.io/browse/JENKINS-68239

What does the zip file contain that you upload? And of what relevance are the parameters?
Seems that in your freestyle job you do extract things from the zip, e.g. the logs and then just print that. And maybe set the run displayname and description
Have you looked at External Monitor Job Type

I will test if I can issue it in the scheduled job collect the log and send it to jenkins.

Thanks