Complete an open task for people
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/jobs/{jobId}/complete \
--header 'x-api-key: <api-key>'const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/jobs/{jobId}/complete', 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/{jobId}/complete"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/jobs/{jobId}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"job": {
"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": {}
}Jobs
Complete an open task for people
Requires jobs:write. Same rules as Mark done in the app. Only an open proofread or post-edit task (waiting_for_review) for people can be completed, not one for an agent. Reviewers, localization managers and admins can complete any task. Anyone else can complete only a task they own, and gets 403 not_task_assignee otherwise. Other jobs, and provider-backed jobs, return 409 job_action_unavailable. The job moves to succeeded and its unfinished strings stay as they are.
POST
https://public-api.hyperlocalise.com
/
v1
/
jobs
/
{jobId}
/
complete
Complete an open task for people
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/jobs/{jobId}/complete \
--header 'x-api-key: <api-key>'const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/jobs/{jobId}/complete', 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/{jobId}/complete"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/jobs/{jobId}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"job": {
"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": {}
}Was this page helpful?

