Hey, im trying to register a job from the API
Ubuntu 22
Reproduce - >
curl http://10.0.1.25:4646/v1/job/random-working-job > test.json
curl -X DELETE http://10.0.1.25:4646/v1/job/random-working-job
curl -X post -d @test.json http://10.0.1.25:4646/v1/jobs
error returned
- Trying 10.0.1.25:4646…
- Connected to 10.0.1.25 (10.0.1.25) port 4646 (#0)
POST /v1/jobs HTTP/1.1
Host: 10.0.1.25:4646
User-Agent: curl/7.81.0
Accept: /
Content-Length: 3950
Content-Type: application/x-www-form-urlencoded
- Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
< Vary: Accept-Encoding
< Date: Sun, 05 Feb 2023 13:05:44 GMT
< Content-Length: 21
< Content-Type: text/plain; charset=utf-8
< - Connection #0 to host 10.0.1.25 left intact
Job must be specified
So i tried specifiying the job ID/NAME
curl -v -X POST -d @alon.json http://10.0.1.25:4646/v1/jobs/random-working-job
- Trying 10.0.1.25:4646…
- Connected to 10.0.1.25 (10.0.1.25) port 4646 (#0)
POST /v1/jobs/AdminServer HTTP/1.1
Host: 10.0.1.25:4646
User-Agent: curl/7.81.0
Accept: /
Content-Length: 3950
Content-Type: application/x-www-form-urlencoded
- Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Vary: Accept-Encoding
< Date: Sun, 05 Feb 2023 13:06:58 GMT
< Content-Length: 0
< - Connection #0 to host 10.0.1.25 left intact
Anyone, maybe has a clue?
Thanks in advance!!