JobsRegistry
Updates the result of a job with the given worker ID.
POST
/
api
/
jobs-registry
/
{workerId}
/
result
Updates the result of a job with the given worker ID.
curl --request POST \
--url https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result \
--header 'Content-Type: application/json' \
--data '
{
"jobId": "<string>",
"data": {
"error": true,
"raw": {},
"payload": {}
}
}
'import requests
url = "https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result"
payload = {
"jobId": "<string>",
"data": {
"error": True,
"raw": {},
"payload": {}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({jobId: '<string>', data: {error: true, raw: {}, payload: {}}})
};
fetch('https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result"
payload := strings.NewReader("{\n \"jobId\": \"<string>\",\n \"data\": {\n \"error\": true,\n \"raw\": {},\n \"payload\": {}\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}⌘I
Updates the result of a job with the given worker ID.
curl --request POST \
--url https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result \
--header 'Content-Type: application/json' \
--data '
{
"jobId": "<string>",
"data": {
"error": true,
"raw": {},
"payload": {}
}
}
'import requests
url = "https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result"
payload = {
"jobId": "<string>",
"data": {
"error": True,
"raw": {},
"payload": {}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({jobId: '<string>', data: {error: true, raw: {}, payload: {}}})
};
fetch('https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/jobs-registry/{workerId}/result"
payload := strings.NewReader("{\n \"jobId\": \"<string>\",\n \"data\": {\n \"error\": true,\n \"raw\": {},\n \"payload\": {}\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}