Add or update screenshot markers
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/screenshots/{screenshotId}/markers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"markers": [
{
"stringId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"filePath": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
markers: [
{
stringId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
key: '<string>',
filePath: '<string>'
}
]
})
};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/screenshots/{screenshotId}/markers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/screenshots/{screenshotId}/markers"
payload = { "markers": [
{
"stringId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"filePath": "<string>"
}
] }
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/projects/{projectId}/screenshots/{screenshotId}/markers"
payload := strings.NewReader("{\n \"markers\": [\n {\n \"stringId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"<string>\",\n \"filePath\": \"<string>\"\n }\n ]\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))
}{
"markers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"screenshotId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stringId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"filePath": "<string>",
"marker": {
"left": 50,
"top": 50,
"width": 99,
"height": 99
},
"source": "manual"
}
]
}{
"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": {}
}Screenshots
Add or update screenshot markers
Requires strings:write. Native projects only. Upserts 1 to 1,000 markers. Each marker picks a string with stringId, or key (and filePath when the key exists in more than one file). A second marker for the same string on this screenshot replaces the box. Duplicate keys return 400 ambiguous_key.
POST
https://public-api.hyperlocalise.com
/
v1
/
projects
/
{projectId}
/
screenshots
/
{screenshotId}
/
markers
Add or update screenshot markers
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/screenshots/{screenshotId}/markers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"markers": [
{
"stringId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"filePath": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
markers: [
{
stringId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
key: '<string>',
filePath: '<string>'
}
]
})
};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/screenshots/{screenshotId}/markers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/screenshots/{screenshotId}/markers"
payload = { "markers": [
{
"stringId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"filePath": "<string>"
}
] }
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/projects/{projectId}/screenshots/{screenshotId}/markers"
payload := strings.NewReader("{\n \"markers\": [\n {\n \"stringId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"<string>\",\n \"filePath\": \"<string>\"\n }\n ]\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))
}{
"markers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"screenshotId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stringId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"filePath": "<string>",
"marker": {
"left": 50,
"top": 50,
"width": 99,
"height": 99
},
"source": "manual"
}
]
}{
"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?

