Unlink strings from a Figma attachment
curl --request DELETE \
--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: 'DELETE',
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.delete(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("DELETE", 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))
}{
"unlinked": 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": {}
}Figma attachments
Unlink strings from a Figma attachment
Requires strings:write, for admins, localization managers and developers. Native projects only. Same selection as linking. Clears the design link of the selected strings that point at this attachment and leaves strings linked elsewhere alone; unlinked counts them.
DELETE
https://public-api.hyperlocalise.com
/
v1
/
projects
/
{projectId}
/
figma-attachments
/
{attachmentId}
/
strings
Unlink strings from a Figma attachment
curl --request DELETE \
--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: 'DELETE',
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.delete(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("DELETE", 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))
}{
"unlinked": 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
application/json
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?

