curl --request POST \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/figma-attachments/{attachmentId}/strings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"stringIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"keys": [
"<string>"
],
"tags": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stringIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
keys: ['<string>'],
tags: ['<string>']
})
};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/figma-attachments/{attachmentId}/strings', 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}/figma-attachments/{attachmentId}/strings"
payload = {
"stringIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"keys": ["<string>"],
"tags": ["<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}/figma-attachments/{attachmentId}/strings"
payload := strings.NewReader("{\n \"stringIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"keys\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\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))
}{
"linked": 1
}{
"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": {}
}Link strings to a Figma attachment
Requires strings:write, for admins, localization managers and developers. Native projects only. Picks strings with exactly one of stringIds, keys (a key name matches in every file), or tags, at most 1,000, and sets their design link to the attachment’s url, as POST .../strings/bulk-update with designUrl does. A string has one design link, so linking replaces any other link it had. linked counts strings whose link changed. A selection that matches nothing returns 400 no_strings_matched.
curl --request POST \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/figma-attachments/{attachmentId}/strings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"stringIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"keys": [
"<string>"
],
"tags": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stringIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
keys: ['<string>'],
tags: ['<string>']
})
};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/figma-attachments/{attachmentId}/strings', 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}/figma-attachments/{attachmentId}/strings"
payload = {
"stringIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"keys": ["<string>"],
"tags": ["<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}/figma-attachments/{attachmentId}/strings"
payload := strings.NewReader("{\n \"stringIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"keys\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\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))
}{
"linked": 1
}{
"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": {}
}Path Parameters
Body
Pick strings one way only. keys match in any file; tags pick strings carrying every tag. Bulk update and batch review refuse a selection matching more than 1,000 strings (too_many_strings). Adding strings to a key job refuses more than 5,000.
Was this page helpful?

