Uploads a dictionary for SDK
curl --request POST \
--url https://acme.getid.ee/api/v1/translations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://acme.getid.ee/api/v1/translations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://acme.getid.ee/api/v1/translations"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)This response has no body data.{
"responseCode": 401,
"errorMessage": "Unauthorized"
}Translations
Uploads a dictionary for SDK
POST
/
api
/
v1
/
translations
Uploads a dictionary for SDK
curl --request POST \
--url https://acme.getid.ee/api/v1/translations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://acme.getid.ee/api/v1/translations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://acme.getid.ee/api/v1/translations"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)This response has no body data.{
"responseCode": 401,
"errorMessage": "Unauthorized"
}Authorizations
Headers
Body
application/json
Example:
{
"dictionaries": [
{
"locale": "en",
"label": "English",
"dictionary": "custom",
"default": true,
"items": {
"CountryAndDocument_header": "Select a document type",
"CountryAndDocument_subHeader": "Carefully select the type of document you wish to provide for identification",
"CountryAndDocument_next": "Next",
"CountryAndDocument_back": "Back",
"CountryAndDocument_countryPlaceholder": "Select a country"
}
},
{
"locale": "ru",
"label": "Русский",
"dictionary": "custom",
"items": {
"CountryAndDocument_header": "Выберите тип документа",
"CountryAndDocument_subHeader": "Внимательно выберите тип документа для прохождения идентификации",
"CountryAndDocument_next": "Дальше",
"CountryAndDocument_back": "Назад",
"CountryAndDocument_countryPlaceholder": "Выберите страну"
}
}
]
}
Response
successful operation