Update the title, description, due date, or owner of many jobs
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/jobs/bulk-update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"jobIds": [
"<string>"
],
"title": "<string>",
"description": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"ownerEmail": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jobIds: ['<string>'],
title: '<string>',
description: '<string>',
dueAt: '2023-11-07T05:31:56Z',
ownerEmail: 'jsmith@example.com'
})
};
fetch('https://public-api.hyperlocalise.com/v1/jobs/bulk-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/jobs/bulk-update"
payload = {
"jobIds": ["<string>"],
"title": "<string>",
"description": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"ownerEmail": "jsmith@example.com"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/jobs/bulk-update"
payload := strings.NewReader("{\n \"jobIds\": [\n \"<string>\"\n ],\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueAt\": \"2023-11-07T05:31:56Z\",\n \"ownerEmail\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}{
"jobs": [
{
"id": "<string>",
"projectId": "<string>",
"kind": "translation",
"type": "string",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"title": "<string>",
"description": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"ownerEmail": "<string>",
"outputFiles": [
{
"fileId": "<string>",
"locale": "<string>",
"filename": "<string>"
}
],
"sourceFile": {
"fileId": "<string>",
"path": "<string>",
"branch": "<string>"
},
"sourceLocale": "<string>",
"targetLocales": [
"<string>"
],
"step": "translate",
"after": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Jobs
Update the title, description, due date, or owner of many jobs
Requires jobs:write. Applies the same change to every job in jobIds, with the rules of PATCH /v1/jobs/{jobId}, in one transaction: if any job cannot change, none do, and the error’s details.jobId names the job that stopped the update. Repeated IDs count once. Each job records its own job_updated event and webhook change.
POST
https://public-api.hyperlocalise.com
/
v1
/
jobs
/
bulk-update
Update the title, description, due date, or owner of many jobs
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/jobs/bulk-update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"jobIds": [
"<string>"
],
"title": "<string>",
"description": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"ownerEmail": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jobIds: ['<string>'],
title: '<string>',
description: '<string>',
dueAt: '2023-11-07T05:31:56Z',
ownerEmail: 'jsmith@example.com'
})
};
fetch('https://public-api.hyperlocalise.com/v1/jobs/bulk-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/jobs/bulk-update"
payload = {
"jobIds": ["<string>"],
"title": "<string>",
"description": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"ownerEmail": "jsmith@example.com"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/jobs/bulk-update"
payload := strings.NewReader("{\n \"jobIds\": [\n \"<string>\"\n ],\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"dueAt\": \"2023-11-07T05:31:56Z\",\n \"ownerEmail\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}{
"jobs": [
{
"id": "<string>",
"projectId": "<string>",
"kind": "translation",
"type": "string",
"status": "queued",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"title": "<string>",
"description": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"ownerEmail": "<string>",
"outputFiles": [
{
"fileId": "<string>",
"locale": "<string>",
"filename": "<string>"
}
],
"sourceFile": {
"fileId": "<string>",
"path": "<string>",
"branch": "<string>"
},
"sourceLocale": "<string>",
"targetLocales": [
"<string>"
],
"step": "translate",
"after": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Body
application/json
Was this page helpful?

